Yale E. Goldman
Yale E. Goldman

Reputation: 1

How do I resolve an error installing symfit - `Cannot uninstall sympy`

I installed Anaconda3 and need to install symfit. Using pip install symfit, the program returns the error: Cannot uninstall sympy. It is a distutils...." It seems symfit requires sympy 1.1.1, but my Anaconda installation already installed sympy 1.3 and the symfit installer objects to that. How can I get around this incompatibility?

Thanks.

Upvotes: 0

Views: 769

Answers (2)

Yale E. Goldman
Yale E. Goldman

Reputation: 1

Yes, installing spyder and symfit within the virtual environment worked perfectly and my original problem installing symfit and running my program are solved. A few other commands from the Anaconda prompt I learned working with virtual environments are "where spyder", which locates the various instances that have been installed and "conda info --envs", which lists the virtual environments that have been created. Thanks again.

Upvotes: 0

Dona George - Intel
Dona George - Intel

Reputation: 111

One of the solution is to create a new conda environment and try out the installations in that environment to avoid the conflict between different package versions. Tried the same in Centos and it is working fine. Try out the following steps:

1) Create a conda environment:

conda create -n my_env python=3

2) Activate the environment:

source activate my_env

3) Install the symfit package

pip install symfit

Please note that 'my_env' is the environment name. Hope this solves your issue.

Regards,

Dona

Upvotes: 2

Related Questions