I have a problem.
How I can solve this, when I write: pip install -r requirements.txt
In my case in Python install ways, please help to understand. Thanks!
I have a problem.
How I can solve this, when I write: pip install -r requirements.txt
In my case in Python install ways, please help to understand. Thanks!
The errors suggest that the user you are trying to install the python module with, aset
, does not have permission to write in the default python modules install path.
You may:
Use sudo pip install -r requirements.txt
to install as super user
Download the packages from the requirement file requirements.txt
in your user's home directory, untar them and import them in your script.
You may use:
pip install -r requirements.txt --no-index --find-links file:///tmp/packages
to get all packages from your requirements file.
Original source for above command here
To import python modules from a custom path:
import sys
sys.path.append('/home/user/module_directory')
from module_directory import module
you can use sudo to install the package in the system folder (not recommended)
sudo pip3.5 install 'the_package_name'
or you can use --user option to install the package in the user folder
pip3.5 install 'the_package_name' --user