I'm trying to install Jupyter on Python 3.7 and seem to be stumbling over this error again and again;
winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
I get the same error when attempting to install pywinpty via pip.
I have installed & reinstalled the build tools to no avail and the command window is elevated - any ideas?
UPDATE: Not quite resolved in 3.7 - but it worked fine in 3.6, I've rolled back.
Temporarily, until standard way does not work for Python 3.7, you can install pywinpty manually by using the prebuilt wheel from Gohlke's collection and then install jupyter with pip.
To install manually (from cmd or Powershell) use:
pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl
I've a concrete solution for you guys... I'm also facing the same issue like you guys as it arises with python3.7 or later versions... But don't worry
I currently have Python 3.9.2
Follow these Steps:-
--> Write these Commands in the cmd
Just install pywinpty by using Gholke s Collection
Now, just download it
Now, copy the path of the file, from where you have downloaded it... In my case it is
After successfully installed Pywinpty... now "pip install jupyter"
Then it's DONE... Now launch the notebook using "jupyter notebook"
In case its not been done... Make a comment below...
There's an easier way to install from Gohlke's collection, which is to use pipwin. Install pipwin using pip install pipwin and then use it in place of pip whenever something doesn't work.
I will leave this option here too. You can install the pywinpty 0.5.7 induvidually and then the rest of the installation can continue.
python -m pip install pywinpty==0.5.7
It worked for me.
Related
Hi I am trying to install win10toast and I get this message:
I had this error when I tried to download pywin32 previously, but why is this error popping up whenever I try to install any other package? I used to be able to install packages fine before with the same command
pywin32 is listed as a requirement for the package win10toast (link). So, when you are installing win10toast, pip also tries to install pywin32 which gives you an error.
From the looks of it, you are using a python 3.6 and a 32-bit system, both of which are supported by the latest release (pywin32 302). To resolve the pywin32 error, you could try the following.
Option 1: Considering there are multiple installs and python3 is mapped to python 3.6 installation. (You can check that using python --version)
Install using python -m pip install pypiwin32
If you had a prior successful install on pypiwin32, you could actually try to use: python Scripts/pywin32_postinstall.py -install
Option 2: Download the binary files and install - https://github.com/mhammond/pywin32/releases/tag/b302
Download the appropriate exe and install
Option 3: Download the source files and build:
Download the zip file from: https://github.com/mhammond/pywin32/releases/tag/b302
Unzip the file
Use the command python setup.py install
Update:
I was looking around the pywin32 github repo and found that the same issue is encountered by others too. While an official update is not rolled out, you can try the solution there:
you need to download the wheel found here
Install the whl manually using the command: python -m pip install C:/some-dir/pywin32-302.1-cp36-cp36m-win32.whl
I want to work with the package sparsesvd and ran the installation as described on the website:
pip install sparsesvd
However, this results in:
ERROR: Command errored out with exit status 1
Now I downloaded the file sparsesvd-0.2.2.tar.gz from the website, assuming that I should be able to store it in the right location myself. Using an naive approach and just copying the entire folder to:
C:\Users\USER_NAME\AppData\Local\Continuum\anaconda3\Lib\site-packages
Does not let me import sparsesvd in Python. What can I do to install this package manually?
Try with
python3 -m pip install sparsesvd
Without any change of environment (so in Python 3.7), running the command:
pip install sparsesvd
worked for me, after I downloaded the Visual Studios build tools.
You can try with
pip3 install sparsesvd
I'm trying to install Jupyter on Python 3.7 and seem to be stumbling over this error again and again;
winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
I get the same error when attempting to install pywinpty via pip.
I have installed & reinstalled the build tools to no avail and the command window is elevated - any ideas?
UPDATE: Not quite resolved in 3.7 - but it worked fine in 3.6, I've rolled back.
Temporarily, until standard way does not work for Python 3.7, you can install pywinpty manually by using the prebuilt wheel from Gohlke's collection and then install jupyter with pip.
To install manually (from cmd or Powershell) use:
pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl
I've a concrete solution for you guys... I'm also facing the same issue like you guys as it arises with python3.7 or later versions... But don't worry
I currently have Python 3.9.2
Follow these Steps:-
--> Write these Commands in the cmd
Just install pywinpty by using Gholke s Collection
Now, just download it
Now, copy the path of the file, from where you have downloaded it... In my case it is
After successfully installed Pywinpty... now "pip install jupyter"
Then it's DONE... Now launch the notebook using "jupyter notebook"
In case its not been done... Make a comment below...
There's an easier way to install from Gohlke's collection, which is to use pipwin. Install pipwin using pip install pipwin and then use it in place of pip whenever something doesn't work.
I will leave this option here too. You can install the pywinpty 0.5.7 induvidually and then the rest of the installation can continue.
python -m pip install pywinpty==0.5.7
It worked for me.
I've been trying to install flask-mysqldb using pip install flask-mysqldb, but every time I try it gives me an error that says :
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe' failed with exit status 2
I've looked around a lot and no answer works for me. I searched the file in https://www.lfd.uci.edu/~gohlke/pythonlibs/ but its not there.
I am on Windows 7 x64.
Of course you can not find whl for flask-mysqldb, but you can find mysqlclient.
Download suitable version for you platform from https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
Then, e.g. pip install mysqlclient-1.3.13-cp27-cp27m-win32.whl, depends what you download.
Finally, pip install flask-mysqldb again, this will work for you.
the same issue/problem I've also received,
That is flask_mysqldb 'no module'
first of all flask_mysqldb isn't installed through pip,
You have to install a suitable version for mysqlclient
for me it worked
I'm using window 10 having python3.8 installed....... to rectfiy the error use the follwing procedure:
click on the link
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient and select mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl (python3.8 a suitable version for me) download it
then search for the directory where downloaded ..... and then through command prompt type
pip install mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl
and then
pip install flask_mysqldb
and done
I had the same problem
I was using python 3.8 and it's not supported by this package.
https://flask-mysqldb.readthedocs.io/en/latest/ : Flask-MySQLdb is compatible with and tested on Python 2.7, 3.5, 3.6 and 3.7
I recreated a virtual environment with python 3.7 and it all worked.
installing above must be made
For Windows
install pip install wheel
after go to on your browser ' https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python '
find the appropriate package for the python version and download.
and copy that file to C:\Users<your-computer-name> .
go to cmd again and write here pip install flask-mysqldb
I am trying to install ggplot for Python using
pip install ggplot
but I get an error message saying
I am using Python2.7 on Windows8. I looked at the suggestions and among other things tried the suggestion here
pip install wheel to install support for wheel files.
pip install ggplot-0.11.5-py2.py3-none-any.whl to install the wheel. I downloaded the whl file from here.
Upon doing this I got further messages saying:
Failed building wheel for scipy
Failed cleaning build for scipy
In addition I still get the original error message.
Please provide suggestions.
After trying all possible things suggested in various forums this is what worked for me:
Download numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl and scipy-0.18.1-cp27-cp27m-win_amd64.whl files from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy to C:\Python27\Scripts directory.
Run the following commands from the DOS command window in windows
pip install numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl
pip install scipy-0.18.1-cp27-cp27m-win_amd64.whl
They were both successfully installed.
Finally
pip install ggplot