Installing a package using PIP inside a Conda env
So, firstly I know this has been asked previously. And, yes I have followed all the advise previously given as follows – pip will not install a package into my conda env.
Being new to this, I am not sure what I am doing wrong?
Help!
This is what I have done:
- Created a conda env -> conda create -n myenv python=3.10
- Activate -> conda activate myenv
All good, terminal shows myenv is active.
I am trying to install a non-conda or forge package – python package called crewai. Therefore I have to use pip.
Running which -a pip returns
/home/a_shipley/anaconda3/envs/crewai-flows/bin/pip
/home/a_shipley/.local/bin/pip
/usr/bin/pip
/bin/pip
which -a python -> returns
/home/a_shipley/anaconda3/envs/crewai-flows/bin/python
/usr/bin/python
/bin/python
python -m pip install crewai==0.70.1 # returns already installed
Requirement already satisfied: crewai==0.70.1 in /home/a_shipley/.local/lib/python3.10/site-packages (0.70.1)
crewai is already installed in my home -> pip list
crewai is not present in anaconda or my local myenv env.
And, running the right pip:
(crewai-flows) a_shipley@ShipleyAI:~/Conda_env/crewai-flows-crash-course$ /home/a_shipley/anaconda3/envs/crewai-flows/bin/pip install crewai==0.70.1
Requirement already satisfied: crewai==0.70.1 in /home/a_shipley/.local/lib/python3.10/site- packages (0.70.1)
Read more here: Source link
