Reputation: 13111
I created a new VENV and pip installed awscli there.
I can see it installed with pip list --local
.
But when I type aws
- it does not recognize the command (even though I activated that VENV).
How to setup paths so that newly installed library in VENV can be recognized?
Upvotes: 0
Views: 965
Reputation: 66
There are many ways to create a virtual environment. Let's say:
python3 -m venv my_venv
But to install some package in that particular environment, you have to activate it by:
For windows:
my_venv\Scripts\activate
For Linux or Mac:
source my_venv/bin/activate
Then if you install a package by using pip, it will be installed in that particular virtual environment. Otherwise, it will be installed in the local environment.
Upvotes: 1