Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conda create is stuck at "solving package specifications"

I'm trying to create a Python 2.7 virtual environment with Anaconda so I can download some packages that are not compatible with Python 3.4. I'm working in Conda version 4.2.13.

When I type the command conda create -n chemistry python=2.7 anaconda the whole thing freezes at the solving package specifications stage.

Does anyone know what causes this or how I can go about fixing it?

like image 540
chemdatafarmer Avatar asked Dec 10 '25 02:12

chemdatafarmer


1 Answers

I switched to pyenv, more lightweight and not intrusive on your environment as conda.

#list available python versions
pyenv install -l 
#install
pyenv install 2.7.9
#activate 2.7.9
pyenv global 2.7.9
#check version
python --version
#create virtual env
python -m venv chemistry
#activate env
./chemistry/scripts/activate

For package management you could investigate poetry

like image 162
Alexandru Mocanu Avatar answered Dec 11 '25 14:12

Alexandru Mocanu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!