Skip to content Skip to sidebar Skip to footer

Libraries Work Fine In Spyder But Not In Pycharm

I have a couple libraries that run fine in Spyder but not in PyCharm. import seaborn as sns import matplotlib.pyplot as plt In PyCharm, I thought I could click File > Settings

Solution 1:

Spyder (When used thru anaconda) will usually use either the default anaconda bin, such as /home/user/anaconda2/bin/python, or when working from an env, /home/user/anaconda2/envs/python3/bin/python. This is not necessarily the same python as your OS path points to. When configuring pycharm to work with anaconda, you must explicitly point to the path of the wanted interpreter.

Checking the path for your interpreter executable from spyder can be done by:

import sys

print(sys.executable)

When setting the right interpreter all your modification to the conda env will be working with pycharm.

Post a Comment for "Libraries Work Fine In Spyder But Not In Pycharm"