EnvironmentError: [WinError 87] The parameter is incorrect - python

I attempted to execute:
python -m pip install tensorflow
from a Windows 10 command prompt that was being run as administrator.
I got the following error:
Collecting tensorflow
Using cached https://files.pythonhosted.org/packages/54/5f/e1b2d83b808f978f51b7ce109315154da3a3d4151aa59686002681f2e109/tensorflow-2.0.0-cp37-cp37m-win_amd64.whl
Collecting google-pasta>=0.1.6
Downloading https://files.pythonhosted.org/packages/c3/fd/1e86bc4837cc9a3a5faf3db9b1854aa04ad35b5f381f9648fbe81a6f94e4/google_pasta-0.1.8-py3-none-any.whl (57kB)
|████████████████████████████████| 61kB 435kB/s
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\users\owner\appdata\roaming\python\python37\site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: numpy<2.0,>=1.16.0 in c:\users\owner\appdata\roaming\python\python37\site-packages (from tensorflow) (1.17.4)
Collecting wrapt>=1.11.1
Using cached https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
ERROR: Error [WinError 87] The parameter is incorrect while executing command python setup.py egg_info
ERROR: Could not install packages due to an EnvironmentError: [WinError 87] The parameter is incorrect
I tried this both from the PyCharm terminal (64-bit version) and from Python 3.7.4 (from the 64-bit build). Using the 64-bit version seemed important according to tensorflow.

The solution for this question gave me the inspiration: Conda-forge spaCy install fails - Error: WinError 87 - the parameter is incorrect
I went to COMODO Internet Security Premium and selected Autocontainment -> Disabled for 15 minutes. Then I re-ran the command
python -m pip install tensorflow
from that Windows 10 command prompt that was being run as administrator.

It also worked for me I disabled the comodo and ran "pip install pyttsx3 --user"

Related

Failure to pip install tensorflow on M1 mac

My environment is using Python 3.7 in conda, when attempting a pip install -r requirements.txt I get the following.
Collecting tensorflow~=2.4.0
Downloading tensorflow-2.4.4-cp37-cp37m-macosx_10_14_x86_64.whl (174.3 MB)
|████████████████████████████████| 174.3 MB 20.3 MB/s
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu~=2.4.0 (from versions: none)
ERROR: No matching distribution found for tensorflow-gpu~=2.4.0
Are there any suggestions here to fix this or to get an insight into what is happening here. I believe the line causing the issue in the requirements.txt is
tensorboard~=2.4
tensorboard-plugin-wit~=1.8
As suggested if I try the command
python3 -m pip install tensorflow-macos
I get the following
ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none)
ERROR: No matching distribution found for tensorflow-macos

tensorfow addon problems while downloading rasa on my mac os

I tried downgrading python to 3.6 and upgraded pip yet no changes. This error shows up while downloading Rasa.
ERROR: Could not find a version that satisfies the requirement tensorflow-addons<=0.12,>=0.10 (from rasa) (from versions: none)
ERROR: No matching distribution found for tensorflow-addons<=0.12,>=0.10 (from rasa)
As the error suggests, you have to manually install the correct version of tensorflow-addons before installing rasa.
Try
pip install tensorflow-addons==0.11.2
and then install rasa again

Unable to install pylint with pip in python 3.9

I am starting to use VS Code, but pylint is not installed and it gives me an error.
I try to install pylint using pip, but it gives me an error code.
Collecting pylint
Using cached pylint-2.6.0-py3-none-any.whl (325 kB)
Collecting astroid<=2.5,>=2.4.0
Using cached astroid-2.4.2-py3-none-any.whl (213 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting isort<6,>=4.2.5
Using cached isort-5.6.4-py3-none-any.whl (98 kB)
Collecting lazy-object-proxy==1.4.*
Using cached lazy-object-proxy-1.4.3.tar.gz (34 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
WARNING: Requested lazy-object-proxy==1.4.* from https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz#sha256=f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0 (from astroid<=2.5,>=2.4.0->pylint), but installing version 0.0.0
ERROR: Requested lazy-object-proxy==1.4.* from https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz#sha256=f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0 (from astroid<=2.5,>=2.4.0->pylint) has different version in metadata: '0.0.0'```
This is a bug of pip for now, see https://github.com/pypa/pip/issues/9203. The pip does something wrong in its package-dependencies handling. And there is a workaround listed in this issue, use --use-deprecated=legacy-resolver. And be noted: This will work until we release pip 21.0.
So run pip install --use-deprecated=legacy-resolver pylint will resolve this problem. This works for me on win10, finally I got lazy-object-proxy 0.0.0 and pylint 2.6.0 installed, though 0.0.0 is kinda weird.
I had the same issues with Python 3.9 & Pylint.
Even when I tried the answers given here, nothing worked. I kept on getting Error messages.
All my issues where fixed by doing the following:
Uninstalled Python 3.9.1
Installed Python 3.7.9 - (Remember to click the box add to PATH)
Verifying Python Installation:
3.1 python --version, This should give you Python 3.7.9
If it doesn't and you get an Error, you need to configure your PATH, here is a video on how to fix that:
https://www.youtube.com/watch?v=vWxQG70GqT4&list=PL914uJ85wHwJ4WYvHEhPHSgG2oyi7Azat&index=11&ab_channel=KyleCook
Verifying pip Installation:
4.1 pip --version (I got another Error here again)
i.e.: ModuleNotFoundError: No module named 'pip' python3
I fixed that by:
4.1.1 python -m ensurepip
4.1.2 python -m pip install --upgrade pip
Ref: ModuleNotFoundError: No module named 'pip' python3
Install Pylint for Python 3.6+:
5.1 pip install pylint --upgrade
Ref: https://pypi.org/project/pylint/
This worked for me.

Unable to install openAI-gym on python for windows

it's giving me an error when I'm trying to pip install gym,
please help
I'm installing on my windows 7
This is the Error:
spyder 3.3.2 requires pyqt5<5.10; python_version >= "3", which is not installed.
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\cloudpickle-0.6.1.dist-info\\installer'
Consider using the `--user` option or check the permissions.
Full Excerpt Follows:
!pip install gym
Downloading https://files.pythonhosted.org/packages/9d/38/87aefd5388f6062267384b7e8f97dbc27c54b3e6137a5148b43d5c10890c/gym-0.13.1.tar.gz (1.6MB)
Requirement already satisfied: scipy in c:\programdata\anaconda3\lib\site-packages (from gym) (1.1.0)
Requirement already satisfied: numpy>=1.10.4 in c:\programdata\anaconda3\lib\site-packages (from gym) (1.15.4)
Requirement already satisfied: six in c:\programdata\anaconda3\lib\site-packages (from gym) (1.12.0)
Collecting pyglet<=1.3.2,>=1.2.0 (from gym)
Downloading https://files.pythonhosted.org/packages/1c/fc/dad5eaaab68f0c21e2f906a94ddb98175662cc5a654eee404d59554ce0fa/pyglet-1.3.2-py2.py3-none-any.whl (1.0MB)
Collecting cloudpickle~=1.2.0 (from gym)
Using cached https://files.pythonhosted.org/packages/09/f4/4a080c349c1680a2086196fcf0286a65931708156f39568ed7051e42ff6a/cloudpickle-1.2.1-py2.py3-none-any.whl
Requirement already satisfied: future in c:\programdata\anaconda3\lib\site-packages (from pyglet<=1.3.2,>=1.2.0->gym) (0.17.1)
Building wheels for collected packages: gym
Running setup.py bdist_wheel for gym: started
Running setup.py bdist_wheel for gym: finished with status 'done'
Stored in directory: C:\Users\INTEL\AppData\Local\pip\Cache\wheels\95\14\8e\b4f5c72600f654312b40c0844d4c23f146f291c48ac7a5df62
Successfully built gym
Installing collected packages: pyglet, cloudpickle, gym
Found existing installation: pyglet 1.4.1
Uninstalling pyglet-1.4.1:
Successfully uninstalled pyglet-1.4.1
Found existing installation: cloudpickle 0.6.1
Uninstalling cloudpickle-0.6.1:
spyder 3.3.2 requires pyqt5<5.10; python_version >= "3", which is not installed.
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\cloudpickle-0.6.1.dist-info\\installer'
Consider using the `--user` option or check the permissions.```
You have two issues reported:
spyder 3.3.2 requires pyqt5<5.10; python_version >= "3", which is not installed.
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site- packages\\cloudpickle-0.6.1.dist-info\\installer'
Consider using the `--user` option or check the permissions.
1) Access Denied: It is having trouble accessing the packages under your Aanaconda directory.
Try running from an Administrative Command Prompt, If you are not logged in as an admin on the system also do that.
2) Python Version: The script says that one of the components needs Python Version Greater than or equal to 3 and that it was not found
Make sure you are on the correct version of Python.

How to install old version of library in Pip3

I would like to use opencv-python and opencv-contrib-python versions in 3.3 or below on Python 3.7. The issue is that I can't seem to get them on pip3. I need it to be pip3 and Python 3.7 because it's to run on Google Cloud Functions.
If I run $ pip3 install opencv-contrib-python== to get the versions I get:
versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.24, 4.1.0.25
and from pip3 install opencv-python==
versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.24, 4.1.0.25
How can I get older versions like 3.3.1.11 which are available in pip2?
Of course deploying trying to get the old version on GCloud gives me
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`pip_download_wheels` had stderr output:\n Could not find a version that satisfies the requirement opencv-python==3.2.0.7 (from -r requirements.txt (line 2)) (from versions: 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25)\nNo matching distribution found for opencv-python==3.2.0.7 (from -r requirements.txt (line 2))\n\nerror: `pip_download_wheels` returned code: 1", "errorType": "InternalError", "errorId": "91F6A3AC"}}

Categories