Using python with Anaconda on Windows

I just installed Anaconda on my computer because I need to use Numpy. Well, when I use python, for some reason I have to be in the same folder as python.exe , and, of course, now that I want to use Anaconda, I have to be in the Anaconda3\Scripts folder, where python.exe no, this is a nightmare, how can I use anaconda with python on a windows computer? Why should it be so hard?

+5
source share
3 answers

I think you mean using the python command line?

If you have admin priviliges on your computer, you can add python to your environment variables by making them available on the console anywhere. (Sorry for the different spellings, I'm not in an English car)

  • Press Shift+Pause ("System")
  • Click "Advanced System Settings"
  • Click "Environment Variables"
  • In the bottom field with "System Variables" there is a variable called PATH . Add the full path to your python.exe without a file to it, adding ; for the last path in the variable, and then adding your path. Do not add spaces!

Example: C:\examplepath\;C:\Python27\

+3
source

When you install anaconda on windows now, it does not automatically add Python or Conda to your path.

If you do not know where your conda and / or python is located, you enter the following commands in your anaconda prompt (it comes when you install anaconda)

enter image description here

You can then add Python and Conda to your path using the setx command on the command line. enter image description here

Then close this command line and open a new one. Now you can use the python command. To do this, open a command prompt and enter

python nameofPythonfile.py

Source: https://medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444

0
source

To be able to do this on the command line, you just need to add Python, as well as the Anaconda3 \ Scripts directory to your system path.

Here is a good tutorial on setting up your path on Windows: http://www.computerhope.com/issues/ch000549.htm

-1
source

All Articles