I was trying to install win32 module for python 3.7 for printing files by printers in my code
I used pip and also visited the page of the package on web. by using pip pywin32 it gives error no 11004. I used ways below in cmd.
pip install pywin32
python -m pip install pywin32
I expected that it will be installed properly but unlike the other packages that I installed and went alright, this one gives error that "error 11004, getaddrinfo failed"
thanks for your help.
Related
I am trying to install a python package pyphenomd in anaconda on my Windows 10. I have installed Microsoft Visual C++ 2015 and the GNU Scientific Library (GSL) package using conda.
I then tried installing pyphenomd using in the Anaconda Prompt
pip install pyphenomd
(Not using conda install since that gives a Packages Not Found Error.)
But I keep getting the following error.
Then
Installing collected packages: pyphenomd
Running setup.py install for pyphenomd ... error
Followed by another iteration of the above error. Finally ending with this message
Based on Cannot open include file: 'gsl/gsl_errno.h': No such file or directory message I am assuming the error is Visual C++ is not able to access the header files for gsl. I then reinstalled the gsl package from conda but that didn't help. So then I installed GSL using vcpkg following the procedure mentioned in here. This did not help either and I am still getting the same error. Installing GSL via cygwin also didn't help.
Now I don't know what to do. I am not even sure if the error is with the installation of gsl ?
Other similar questions that I found either didn't have any answers or the provided solutions weren't relevant.
I really don't get why Python is so difficult to get up and running properly.
Anyway, I've just fresh installed Python 3.7 and PyCharm. I want to get the Python Imaging Library working within my project, but when I try to install it using PyCharm I get the following error:
pip install PIL
Non-zero exit code (1)
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\Jake\AppData\Local\Programs\Python\Python37-32\python.exe'.
Command output:
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I've attempted to run python -m pip install --upgrade pip from a CMD prompt, but I then get this error:
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
I just tried to install NumPy using the exact same method for PIL and Numpy installed without any issues whatsoever. This leads me to think that maybe PIL isn't supported for Python 3.7?
Can someone explain to me what the issue is here and help me with importing modules into my PyCharm project?
PIL is not maintained anymore. You can use Pillow instead, a more active fork of PIL.
pip install Pillow
Unfortunately I cannot install any modules on python 3.4 32 Bit using the pip command due to the following error.
How do I get around the problem. I have removed all other installations of python and have installed the 32 Bit version rather than the 64 Bit one?
Thanks
Edit 1:
At the moment I can't even upgrade pip
Edit 2
Unfortunately it still returns an error.
Try upgrading your pip with
python -m pip install -U pip
If this fails too, it has to be a network problem. See if you're properly connected to internet.
Seems like you might be using an old version of PIP which is facing SSL certification issues and is hence unable to connect. You can do a manual reinstall of pip using these commands.:
python -m pip uninstall pip setuptools
Then, download this script
Finally, run the script with:
python get-pip.py
I was trying to download a Python wrapper called rawpy on my Windows machine. I used the command "pip install rawpy". I have already looked at many other SO threads but could find no solution. The exact error is :
IO Error: [Errno 2] No such file or directory:
'external/LibRawcmake/CMakeLists.txt'
The only dependency for the wrapper is numpy, which I successfully installed. I would like to know how to fix this. Quite new to Python, so any information would help.
By separate communication the OP said that the installed pip version is 7.1.0 and Python 2.7. The solution was to update pip to a version >= 8. The underlying issue is related to SOABI tag handling in Python 2, particularly when creating the binary wheels with pip >= 8 and trying to load them in pip < 8. pip 7 didn't identify the available binary wheels as compatible and instead downloaded the source distribution which then failed to install spectacularly.
User letmaik was able to help me with this. It turned out that the error was caused by my version of pip being too old. The command "python -m pip install -U pip" did not work to upgrade pip; "easy_install -U pip" was required. This allowed rawpy to be installed successfully.
I'm a newbie and so have problems installing the basemap package. I have Python 3.6.0(32 bit, windows)
I want to install basemap package.(Numpy and Matplotlib have already been installed). Versions available on internet are 3.3 compatible. Things I've tried:
Installing it with pip. Didn't work.
Found another package http://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap compatible. When tried to install, it gave egg info code 1 error.
Created virtual env and tried installing it. Gives error
Where am I going wrong?
the egg error is because GEOS is missing
try direct to install a wheel package:
get it from:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
then install with (case python 3.7 win64):
py -m pip install "C:\maxbook\maxboxpython\basemap-1.2.0-cp37-cp37m-win_amd64.whl"