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
Related
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.
So I am trying to download pip for gRPC as given on grpc.io website. And I read many questions related to that but I am still not able to download pip. I am using mac with python (version 2.7.10).
when I write pip on console. It gives below error :-
bash: pip: command not found
I checked few questions and they were recommending easy_install pip but didn't work either.
One of my colleague recommended to use brew install pip as we have installed almost everything using brew.Got below error when I did that.
Error: No available formula with the name "pip"
Homebrew provides pip via:brew install python. However you will then
have two Pythons installed on your Mac, so alternatively you can install
pip via the instructions at:
https://pip.readthedocs.io/en/stable/installing/
I went on this link and it says to run curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py and after that, run this python get-pip.py.
I did this but it gives below thing :
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Rolling back uninstall of pip
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip'
Consider using the `--user` option or check the permissions.
Could you all suggest a way to download and use pip?
UPDATE
Earlier I was trying to install using sudo easy_install pip, it was giving an error. Now I tried doing it, it got installed. Thanks all for the help.
follow the following steps:
go to pypi website pip offcial account .
Download the source file. pip-18.1.tar.gz
Extract the file.
in command prompt run command :
python setup.py install
pip is installed now.
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