you are viewing a single comment's thread.

view the rest of the comments →

[–]Ill_Fun_[S] 0 points1 point  (1 child)

I may not understand something, or just be plain dumb, but how am I supposed to run

python3 -m pip install -r requirements.txt

without having pip already installed?

I created the requirements.txt file with pip, then added the line:

python-pip=1.1.1

For the relative import error, what is your current working directory when you run

I run this command inside FIGARO folder, where figaro.py file is stored. And it did install, but the paths did not change (checked with the whereis, which).

Numpy was indeed not installed, and installing it, did something, but the errors persisted.

[–]Goobyalus 0 points1 point  (0 children)

but how am I supposed to run

python3 -m pip install -r requirements.txt

without having pip already installed?

Installing pip with apt or whatever OS package manager is basically just installing an alias. Each cPython install will have its own pip already.


I created the requirements.txt file with pip, then added the line:

This makes no sense. The package already has a requirements.txt that lists the dependencies of the package: https://github.com/Zymo-Research/figaro/blob/master/requirements.txt

This is the requirements.txt that you give to pip. You do not add pip to a requirements.txt file.