aurora-multiphysics / cyclops

Cyclops is a sensor suite optimisation program, designed for fusion engineering experiments.
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Linux Installation Instructions #31

Closed CBqk3762 closed 11 months ago

CBqk3762 commented 11 months ago

I have been following the installation instructions for Linux, on a Debian build, and come across some problems. python3 -m venv venv does not work on Debian/Ubuntu, the following error message appears:

cbyers@l2624:~/cyclops$ python3 -m venv venv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.11-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /home/cbyers/cyclops/venv/bin/python3

The suggested command apt install python3.11-venv does work but it is necessary to run the command in venv/pyvenv.cfg in order to producevenv/bin/activate, otherwise this does not exist.

Hopefully this is helpful!

CBqk3762 commented 11 months ago

Additionally, pip install -r requirements.txt will not work, instead user should do /path/to/venv/bin/pip install -r requirements.txt

Possibly worth noting that this raises depreciation warnings for grapheme, future and pymoo when run.

lukethehuman commented 11 months ago

Thanks for finding this. Pull request #30 changes the installation and should resolve this.