When trying to install the python librosa package with the pip install librosa --user, I get the following error:
...
Collecting audioread>=2.1.9
Using cached audioread-3.0.0.tar.gz (377 kB)
ERROR: Error [WinError 5] Access is denied while executing command python setup.py egg_info
Preparing metadata (setup.py) ... error
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied
Check the permissions.
This error happens if I run the command from the CMD ran as administrator, and I have also tried restarting the computer and running the command from another shell.
I am trying to install TensorFlow in windows.
Using pip command:
pip install tensorflow
But I'm getting this error message:
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\naray\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python38\\site-packages\\tensorflow_estimator\\python\\estimator\\canned\\linear_optimizer\\python\\utils\\__pycache__\\sharded_mutable_dense_hashtable.cpython-38.pyc'
Can someone help me solve this error?
I'm getting Error while installing watson package in anaconda by
pip install --upgrade watson-developer-cloud==0.26.1
even though I run the command prompt as administrator mode!(in windows 10, Python 3.6.3)
Collecting watson-developer-cloud==0.26.1
.
.
.
.
.
.
PermissionError: [Errno 13] Permission denied: 'C:\ProgramData\Anaconda3\Lib\site-packages\_cffi_backend.cp36-win_amd64.pyd'
Try out to install as a user:
pip install --upgrade watson-developer-cloud==0.26.1 --user
You can also try to use environments.
They are also useful, if you plan to migrate your stuff to the Cloud
I am installing psychopy package using pip install and I am facing the following error:
ImportError: No module named 'preferences'
Command "python setup.py egg_info" failed with error code 1
I've already installed preferences package and this error keep on showing up.
I stumbled upon the same problem, and it seems like installing 'django-preferences' helped me
sudo pip install django-preferences
Hope this helps.
There is a new version of the aws cli, but when i do pip install --upgrade awscli i get this:
Installing collected packages: pyasn1, rsa, futures, jmespath, six, python-dateutil, docutils, botocore, s3transfer, colorama, awscli
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-i7HlOi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
There should be two ways to fix this
Better way
It would be beneficial for you to install brew you can follow this link and then install python through brew. Then the way to avoid this is to use a virtual environment for python such as this and then make a virtual environment to work on your AWS account. Also, since you've installed everything through brew, you should never run into permission issues on your account.
Highly Unrecommended Way
You could run your command as super user with:
sudo pip install --upgrade awscli, this should give pip permission to uninstall the required file, but it's also possible that it won't work. Using the brew version of python is definitely preferable.
Hope that helps.