I am configuring a brand new machine and have just installed Anaconda and python.
In the command line, I type in
pip install %PACKAGENAME%
When in a jupyter notebook, I type in:
import %PACKAGENAME%
It cannot find the package.
Turns out that when I type in sys.path, I get:
C:\\Users\\ywu\\AppData\\Local\\Continuum\\Anaconda3\\
Therefore, I have to specify the path first:
sys.path.append("C:/Users/ywu/AppData/Local/Programs/Python/Python36-32/Lib/site-packages")
import %PACKAGENAME%
This step is unnecessarily annoying. There are two options, either:
automatically install into the Anaconda folder
automatically import from the python36-32 libraries
Can someone please advise on what is the best practice between 1 or 2 and how I can actually accomplish 1 or 2?