Reputation: 2642
I'm a little new to package management and trying to recreate a python environment using pip. I've called the following commands...
Created venv:
sudo python3.6 -m venv ./venv
Activated:
. activate ./venv/bin
Installed requirements.txt:
sudo pip3.6 install -r requirements.txt
The modules appear to install correctly, but after running the application it as if I've installed nothing:
ModuleNotFoundError: No module named 'hjson'
It's the same for other modules.
What have I done/not done to screw this up? Which directory should I be checking for installed packages?
I'm using opensuse Leap 15.0
Upvotes: 2
Views: 5138
Reputation: 7880
Python 3.6 comes with pip 10 which is outdated. You should update it to latest version.
After activating the virtual environment with
source ./venv/binc/activate
Update the pip with
python -m pip install --upgrade pip
I you still having problem, ensure that pip is installed. If not installed, install relevant version.
E.g. for ubuntu:
apt install python3.6-pip
Upvotes: 4