How to install Python (any version) on Windows if you do not have administrator rights?

The "NO ADMIN PRIVILEGES" section is key. I need to install python, but I do not have access to it to complete the installation correctly. I am also behind the firewall, so the pip option is pretty limited.

Could you help me figure this out?

Thank you so much in advance.

+24
python
source share
6 answers

On the Python website, download the version of Python MSI that you want to install.

Then open a command prompt and use the following command:

msiexec /a python-2.7.10.msi /qb TARGETDIR=C:\python27 

Replace python-2.7.10.msi if you downloaded Python 3 and adjusted the destination directory to where you want.

The /qb flag will give you a small dialog runtime.

+38
source share

I downloaded the embedded zip file from the site. Extracted it to a folder of my choice. Then he added this folder to the Windows path variable (using setx). It worked for me. Well, this is to install only Python, not other packages like PIP, etc.

Later I found a better and easier way with Python version 3.7.0 for Windows.

  1. Download the Windows exe installer.
  2. Run exe.
  3. A screen appears to select the installation option.
  4. Uncheck "install for all users."
  5. Go to custom installation.
  6. On the next screen, specify the path to the directory to which your user has full access to the computer.
  7. Uncheck "create shortcuts for installed application."
  8. Make sure the option "Add python to environment variable" is not checked.
  9. complete the installation.
  10. Add the installation path and Script folder to Path using setx

This installed all the standard Python components.

+9
source share

I suggest you try using Anaconda . With this, you also get good package management.

+8
source share

I suggest you use Anaconda.

Anaconda is a completely free Python distribution (including for commercial use and redistribution). It includes over 300 of the most popular Python packages for science, math, engineering, and data analysis.

One of the great things about Anaconda is that it installs in your home folder , which you must have write access to.

It comes with a conda script, which also allows you to install packages.

Keep in mind that you cannot add it to the System PATH , although you can try adding it to your PATH user. If you cannot add it to any of them, you will have to manually specify the full path to the python executable to run scripts from the command line.

You can download Anaconda here .

+5
source share

As mentioned earlier, use Anaconda . The default installation process does not require Windows administrator privileges. It comes with good packet management (this might not work if you are behind corporate firewalls). If you intend to do scientific computing, Anaconda is also a “highly recommended” way for the Jupyter Notebook to work locally.

+2
source share

With the May 2010 release of Windows 2010, you don’t have to configure MSI, download the Anaconda version, or go to the python website.

  • python3.exe and python3.exe already installed on python3.exe
  • these commands will take you directly to the Microsoft Store!

Example: Python 3.7 , which installs python and puts python in the path for the current user. Thus, there is no need for administrator rights.

This is discussed in the Talk Python To ME podcast No. 191 with Steve Dower in December 2018.

See More in the section “ Who put Python in the update for Windows on May 10, 2019? ” From the same Steve Dower (also on Stack Overflow ):

This version of Python is fully supported by the community, easily installed on Windows 10, and automatically makes available common commands such as python , pip and idle (as well as equivalents with python3 and python3.7 version numbers, for all commands, just like on Linux).

https://devblogs.microsoft.com/python/wp-content/uploads/sites/12/2019/05/Python_After-1024x449.png

0
source share

All Articles