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
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'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'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 am trying to install shapely 1.5.6 in Windows 10 (python 3). I am getting this strange error.
python setup.py egg_info" failed with error code 1 in c:\users\user1\appdata\local\temp\pip-build-g1iztcx1\shapely
I have tried updating pip but no luck.
What could be the problem?
You can directly download the Shapely Wheel here and run pip install Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl (depending on the name of the package you decided to download).
This worked well for me with Windows 10 and python 3.
In case you are still getting errors with the above solutions just make sure that the shapely wheel you are downloading (here) is the correct one and matching your system's requirements. Make sure you choose the correct 32 bit or 64 bit that also matches the python version (cp37 is for python 3.7). After downloading the file and moving it to your Python directory, run the administrative cmd on Python directory and run:
py -3.7 -m pip install Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl
(Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl is the name of the wheel you decide to download)
Error code 1 means the "Operation is not permitted". Usually when that happens in Linux, you can just use sudo to resolve it. But on windows, you probably have to right-click on cmd and run as administrator to resolve it.
If unable to resolve it then try using easy_install to install the module. Then if still cannot, try updating the setuptools and pip. pip install --upgrade setuptools, pip install --upgrade pip.
I'm having an issue with pip install. I am trying to download SQLAlchemy and download the gz file from here. However, when I type pip install setup.py in the Command Prompt, I get:
Downloading/unpacking setup.py
Could not find any downloads that satisfy the requirement setup.py
Cleaning up..
No distributions at all found for setup.py
I've been facing a similar problem with pip when trying to download other libraries and this started occurring a day after I downloaded Python 3.4, when I was running Python 2.7 previously. I had a look at this and tried using pip install --pre library_name. However, this doesn't seem to working either and I get a similar message to the one above.
Thank You
You are using wrong command. Please do
pip install SQLAlchemy
Or:
python setup.py install # If you want to manually extract the package for installation for some reason, but this is not required with pip