May-14-2020, 09:46 PM
I am reading a book called Python Automation Cookbook.
First thing it mentions is getting a virtual environment set up.
I installed Python virtualenvwrapper
But I am getting this message when I start Ubuntu and when I start bash:
I have installed virtualenvwrapper:
In
/home/pedro/.local/bin/
I have
virtualenvwrapper.sh, virtualenv and virtualenvwrapper_lazy.sh
What should I do to set the path right?
In /home/pedro/.profle I followed the instructions to add this:
I also put the above in .bashrc
But I am still getting the error message. What should I do??
The virtual environment seems to be working:
First thing it mentions is getting a virtual environment set up.
I installed Python virtualenvwrapper
But I am getting this message when I start Ubuntu and when I start bash:
Quote:/usr/bin/python: No module named virtualenvwrapper
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.
I have installed virtualenvwrapper:
Quote:pedro@pedro-512ssd:~$ pip3 install virtualenvwrapper
In
/home/pedro/.local/bin/
I have
virtualenvwrapper.sh, virtualenv and virtualenvwrapper_lazy.sh
What should I do to set the path right?
In /home/pedro/.profle I followed the instructions to add this:
Quote:export WORKON_HOME=~/.virtualenvs
source /home/pedro/.local/bin/virtualenvwrapper.sh
I also put the above in .bashrc
But I am still getting the error message. What should I do??
The virtual environment seems to be working:
Quote:pedro@pedro-512ssd:~$ source .virtualenvs/automation_cookbook/bin/activate
(automation_cookbook) pedro@pedro-512ssd:~$