David Parks
David Parks

Reputation: 32081

Installing packages in conda environments fails when conda attempts to uninstall a root package

I've installed Anaconda on linux, it's installed in user space under my home folder.

I've created an environment.

Within that environment I've run conda install anaconda to install all standard packages.

I'm trying to install tensorflow now, running:

pip install --upgrade tensorflow-gpu

This process attempts to upgrade the numpy package. But that step errors out because it's trying to uninstall the system numpy package in /usr/local/bin/f2py.

I thought this environment was all self-contained in user space. Any idea why it would attempt to uninstall a system package that was installed before Anaconda was installed?

Upvotes: 0

Views: 427

Answers (1)

darthbith
darthbith

Reputation: 19646

You probably need to clear your PYTHONPATH environment variable, if its pointing at the system installation of Python.

Upvotes: 1

Related Questions