As soon as you try to install some packages/libraries using 'pip install ', permissions will not allow to install the packages. If you install to C:\PythonXX or to C:\Program Files\PythonXX, you will always have permissions issue. I think the best path to install python is in C:\Users\\PythonXX (especially if you are using PC with multiple users and also if you are using your organization PC. Installing in the %appdata% folder for a single user is fine if you are the only person who is going to be using Python, but if your computer is going to be used by another user (for example, if it is a work computer which will be "inherited" by a new employee that takes over your position), Python (and all necessary Python packages) would have to be reinstalled for that user. Another example of overly enthusiastic Microsoft "security." For example, I have found that if you try to install the matplotlib package in Python 3.7 installed under c:\Program Files\, some of the packages that matplotlib is dependent on are blocked from installing, and the package will not run, but if it is installed in c:\Python37\, it runs fine. It may be "less secure", but it actually works, which installing under c:\Program Files\ sometimes does not. Installing in a directory directly below the root (for example c:\Python36\ for Python 3.6) avoids these problems. Subfolders of c:\Programs Files\ have restricted permissions on them which are not compatible with the installation processes for some Python packages. Installing Python in c:\Program Files\ in 64-bit Windows 10 has problems because of the new "security features" of Windows 10.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |