Unable to install python packages due to enviroment error - python

I'm trying to install PyQt pip install pyqt5, and it fails at the very end:
ERROR: Could not install packages due to an EnvironmentError: [WinError 2] Cannot find file: 'C:\\Python38\\Scripts\\pylupdate5.exe' -> 'C:\\Python38\\Scripts\\pylupdate5.exe.deleteme'
Any ideas? PyQt documentation says nothing about this error, this one command should install it.

Must be the anti-virus or firewall. Disable it and try again.

Related

Could not install packages due to an OSError

i' trying to run the python video annotator software installed through pip but this error show me everytime
ERROR: Could not install packages due to an OSError: [WinError 5] Accesso negato: 'C:\Users\SZN\AppData\Local\Temp\pip-uninstall-5ejn6so7\qt5webenginecore.dll'
Consider using the --user option or check the permissions.
I've tried the "--user" method but nothing changed, i've tried to uninstall it many times but nothing, idk where to give permission and my pip is updated, any solution?

How to install TensorFlow packages without error by using pip

I am installing TensorFlow for the python3.8 version using pip. It is downloading most of the packages, but it is not able to install some packages and it is throwing an error like this :
Installing collected packages: tensorflow
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\Users\vssnr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tensorflow\include\external\com_github_grpc_grpc\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h'
HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths
Please inform me how to download the TensorFlow without any mistakes like this. Or how to resolve this issue?
Open your Windows PowerShell with Admin access and try inputting this :
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
And after, try to run the pip command to install TensorFlow again and you are able to install it

Django package is not getting installed in virtualenv

The many times I am trying to install Django in a virtual environment in Python 3.9. It's showing an OSError and the package is not getting installed.
pip3 install django
Error:
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Sandip\\Documents\\Projects\\Beta-Ecom\\myenv\\Lib\\site-packages\\sqlparse'
Kindly help me resolve this issue.

Why is scikit-learn not installing on python 3.8 using pycharm on windows 10?

When I try to install scikit-learn using PyCharm by going into the settings->Project Settings->Project Interpreter-> '+' button and serching for and installing scikit-learn, it gives me this error:
Could not install packages due to an EnvironmentError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '"C:'
I installed numpy without any problems before this.
Is there anything I am missing or another way I can try to install scikit-learn?
Update: I found the answer.
For anyone out there with the same problem as me, you should go to settings->Project Settings->Project Interpreter in Pycharm. There you will find pip, which for me was out dated. If this is the case, then click on pip and then the upgrade button that looks like an up arrow. After it finishes installing the latest version of pip, retry installing scikit-learn or any other package that would not previously install and gave the error "Could not install packages due to an EnvironmentError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '"C:'"

Can't pip install anything EnvironmentError: [Errno 2]

Windows 10
I'm trying to pip install stuff, however since today I can't install anything because I keep getting the following error:
Cold not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\users\behherder\anaconda3\envs\dlc\lib\site-packages\prompt_toolkit-2.0.7.dist-info\METADATA'
However, if I go there, the file exists. So might that it gets deleted before, and the placed back after the error?
It happens with everything I'm trying to install or upgrade.
I tried upgrading PIP, got that error. Any other install, that error....
Anyone knows what's wrong and how to solve?
Or need any more info?
Thanks!

Categories

Resources