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.
Related
The interpreter configuration in pycharm became invalid for some reason so I created a new virtual environment for the project that I was working on, and installed the dependencies again. But I am having trouble in installing bcrypt again. Here's the complete error. The project was working fine with the previous interpreter so I doubt that the python version has anything to do with it. I tried installing wheel as well as the error said could not build wheels but that didn't do the job as well.
The complete error:
Collecting flask-bcrypt
Using cached https://files.pythonhosted.org/packages/1d/c0/6d4c04d007d72b355de24e7a223978d1a95732245f
9e9becbf45d3024bf8/Flask-Bcrypt-0.7.1.tar.gz
Requirement already satisfied: Flask in c:\users\User\appdata\local\programs\python\python38-3
2\lib\site-packages (from flask-bcrypt) (1.1.2)
Collecting bcrypt (from flask-bcrypt)
Using cached https://files.pythonhosted.org/packages/d8/ba/21c475ead997ee21502d30f76fd93ad8d5858d19a3
fad7cd153de698c4dd/bcrypt-3.2.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: Jinja2>=2.10.1 in c:\users\User\appdata\local\programs\python\p
ython38-32\lib\site-packages (from Flask->flask-bcrypt) (2.11.2)
Requirement already satisfied: Werkzeug>=0.15 in c:\users\User\appdata\local\programs\python\p
ython38-32\lib\site-packages (from Flask->flask-bcrypt) (1.0.1)
Requirement already satisfied: itsdangerous>=0.24 in c:\users\User\appdata\local\programs\pyth
on\python38-32\lib\site-packages (from Flask->flask-bcrypt) (1.1.0)
Requirement already satisfied: click>=5.1 in c:\users\User\appdata\local\programs\python\pytho
n38-32\lib\site-packages (from Flask->flask-bcrypt) (7.1.2)
Requirement already satisfied: six>=1.4.1 in c:\users\User\appdata\roaming\python\python38\sit
e-packages (from bcrypt->flask-bcrypt) (1.15.0)
Requirement already satisfied: cffi>=1.1 in c:\users\User\appdata\local\programs\python\python
38-32\lib\site-packages (from bcrypt->flask-bcrypt) (1.14.2)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\User\appdata\local\programs\python
\python38-32\lib\site-packages (from Jinja2>=2.10.1->Flask->flask-bcrypt) (1.1.1)
Requirement already satisfied: pycparser in c:\users\User\appdata\local\programs\python\python
38-32\lib\site-packages (from cffi>=1.1->bcrypt->flask-bcrypt) (2.20)
Building wheels for collected packages: bcrypt
Building wheel for bcrypt (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\User\appdata\local\programs\python\python38-32\python.exe' 'c:\users\User\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.p
y' build_wheel 'C:\conda_temp\tmpgl0zt2ul'
cwd: C:\conda_temp\pip-install-9i9ne9yb\bcrypt
Complete output (15 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\bcrypt
copying src\bcrypt\__about__.py -> build\lib.win32-3.8\bcrypt
copying src\bcrypt\__init__.py -> build\lib.win32-3.8\bcrypt
copying src\bcrypt\py.typed -> build\lib.win32-3.8\bcrypt
running build_ext
generating cffi module 'build\\temp.win32-3.8\\Release\\_bcrypt.c'
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
building '_bcrypt' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://vi
sualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for bcrypt
Running setup.py clean for bcrypt
Failed to build bcrypt
ERROR: Could not build wheels for bcrypt which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 20.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
try using these commands:
python -m pip install --upgrade pip
python -m pip install --no-use-pep517 bcrypt
What I did might work for you also:
$ python -m pip install --no-use-pep517 bcrypt
$ python -m pip install --upgrade pip
and it worked.
bcrypt is now implemented in Rust. Users building from source will need to have a Rust compiler available although nothing will change for users downloading wheels.
bcrypt developers no longer ship manylinux2010 wheels. Users should upgrade to the latest pip to ensure this doesn’t cause issues downloading wheels on their platform or use an older version than 4.0.0.
So try
pip3 install -U "bcrypt<4.0.0"
Fixing bcrypt to 3.2.2 (the latest version before 4.0.0) fixed this for me. Like stated here:
The problem comes with bcrypt 4.0.0 for which there is no wheel available.
Changing python from 32-version to 64-version may be solution. It helped me.
I downloaded and installed
"microsoft visual c++ build tools"
https://go.microsoft.com/fwlink/?LinkId=691126
and restarted the computer and worked for me.
try
pip install pep517
PIP is very unreliable, it needs over 350 different packages under python, and the system as well
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"
I tested a python script to send anythink with Pushover. But I get the error "ImportError: No module named pushover"
My installed Versions:
# pip install python-pushover
Collecting python-pushover
Using cached https://files.pythonhosted.org/packages/6f/3d/144a0137c749bd152c3ab7f4d3ce8fe1455168dab36c2fcd900d3fab16ad/python-pushover-0.4.tar.gz
Requirement already satisfied: requests>=1.0 in /usr/local/lib/python3.5/dist-packages (from python-pushover) (2.21.0)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.5/dist-packages (from requests>=1.0->python-pushover) (1.24.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.5/dist-packages (from requests>=1.0->python-pushover) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.5/dist-packages (from requests>=1.0->python-pushover) (2018.11.29)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.5/dist-packages (from requests>=1.0->python-pushover) (2.8)
Installing collected packages: python-pushover
Running setup.py install for python-pushover ... done
Successfully installed python-pushover-0.4
# python -V
Python 2.7.13
# python3 -V
Python 3.5.3
The scriptheader:
#!/usr/bin/env python
import pushover
I have tried with pip(3) to install python-pushover but with no success.
I faced this exact error today. This is due to co-existing of different versions of python in your system.
Do, /usr/bin/python3 if the module was installed for py3 and just /usr/bin/python for py2 before running the script.
Refer Installed module using pip, not found for more.
In my case, you should :
uninstall that package:
pip uninstall pushover
and install the correct package:
pip install python-pushover
And your code will work fine.
I am very new to coding and don't understand install processes. I am using Python 3.7.0 on Max OSX El Capitan. I want to install matplotlib but I tried this in terminal :
$ pip install matplotlib
and it gave me an error that :
192-168-1-107:~ Ada1$ pip install matplotlib Requirement already satisfied: matplotlib in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Requirement already satisfied: numpy>=1.5 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib)
Requirement already satisfied: python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib)
Collecting tornado (from matplotlib) Could not fetch URL https://pypi.python.org/simple/tornado/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping Could not find a version that satisfies the requirement tornado (from matplotlib) (from versions: ) No matching distribution found for tornado (from matplotlib)
I also tried :
$ sudo pip install matplotlib
but same error and python gives the error it is not installed. Help?
Basically there are 3 possible causes I can see:
conflict of python 3 or 2 versions (most liekly)
OSX-specific bugs (needs a newer pip version as discussed here),
you are behind firewal (you can disable SSL by adding flags to pip command)
To make sure you are installing to python 3 you can use:
pip3 install -U matplotlib
Vertual environments and pipenv, conda and possibly poetry are your friends to achive greater isolation of python project setups in the future.
I am trying to install wxpython (I have python 3.5.2(32Bit) and Windows 10(64Bit))
I tried :pip install wx and i get: Failed building wheel for wxpython-phoenix 2 times and then a big error line-->
I also tried installing Anaconda, but it did not help.How can I overcome the problem ?
There's a lot of questions about failed installations on windows, probably because the packages are compiled when installed, and sometimes the compilation fail when the compiler is not properly configured. I admit I decided to let the specialized people handle it.
As a nice workaround, you can grab the already built distribution at the official wxpython website located here:
Python 3.5 32/64 bit windows:
https://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win_amd64.whl
https://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win32.whl
just download the .whl file and do for example:
C:\python35\scripts\pip install wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win_amd64.whl
For linux you need to go here first
https://extras.wxpython.org/wxPython4/extras/linux/gtk3/
Then grab your linux version and do the install.
(base) fsdfsdfd#linux:~/Downloads$ pip install wxPython-4.1.1-cp38-cp38-linux_x86_64.whl
Processing ./wxPython-4.1.1-cp38-cp38-linux_x86_64.whl
Requirement already satisfied: pillow in /home/orangel/miniconda3/lib/python3.8/site-packages (from wxPython==4.1.1) (8.1.2)
Requirement already satisfied: numpy; python_version >= "3.0" in /home/orangel/miniconda3/lib/python3.8/site-packages (from wxPython==4.1.1) (1.20.1)
Requirement already satisfied: six in /home/orangel/miniconda3/lib/python3.8/site-packages (from wxPython==4.1.1) (1.15.0)
Installing collected packages: wxPython
Successfully installed wxPython-4.1.1
if does not works, please try this
sudo apt install libwxgtk3.0-gtk3-dev