Integrate An Existing Python Library into Anaconda

I have installed several Python libraries / Toolkit such as NLTK, SciPy and NumPy on my Ubuntu. However, I would like to use the Anaconda distribution. Should I remove existing libraries before installing Anaconda?

+5
source share
1 answer

There is no need to remove the Python system. Anaconda is sitting next to him. When it is installed, it adds a line to your .bashrc , which first adds the Anaconda directory to your PATH . This means that whenever you type python or ipython in the terminal, it will use Anaconda Python (and Anaconda Python will automatically use all Anaconda Python libraries, such as numpy and scipy, not the system ones). You must leave the Python system alone as some system tools use it. Important points:

  • Whatever Python is on your PATH , this is what is used when you use Python in the terminal. If you create a conda environment with conda and use source activate , it first places this environment in PATH .
  • Each Python (Anaconda or system) will use its own libraries and not look at others (this is not true if you set the PYTHONPATH environment variable, but I recommend that you do not).
+4
source

Source: https://habr.com/ru/post/1207986/


All Articles