The instructions for Windows ask to download the installer from
http://www.lfd.uci.edu/~gohlke/pythonlibs/
The link for my version displays as "Shapely‑1.5.13‑cp27‑none‑win_amd64.whl".
However it is actually a zip file, which contains 2 folders, neither of which appear to contain a .whl file or an installer.
Note that the question is not about how to install a .whl file, but why I can't see a .whl file.
How do I install this?
The file is a .whl, you can install it by running
pip install ___.whl
Related
I am trying to install opencv in Python3.6 (or Python3.10) on a CentOS 7 Server from source, but I always get the error:
"No such file or directory: '_skbuild/linux-x86_64-3.6/cmake-install/python/cv2/__init__.py'"
I am struggling to figure out why this is occurring.
I am using:
cmake3.x86_64 0:3.17.5-1.el7
Python 3.6.8
opencv-python-4.5.5.64
To install OpenCV, I downloaded the tar.gz file from https://pypi.org/project/opencv-python/#files. I then ran:
easy_install-3.6 .
to install the package. This has worked in the past on this computer.
Any suggestions would be appreciated!
EDIT:
I was able to get OpenCV installed by downloading and installing the whl file from PyPI. Since my server is offline, I had to download the whl file. Then install the package using 'pip3 install '. Originally, I had glanced over the text that mentioned the failed OpenCV dependency (numpy) that was not installed and assumed that the whl file wouldn't work for my situation. So I no longer need a solution to this issue, but I leave this unanswered because I believe the installation from source should have worked.
So I downloaded the Python embedded files, and put it into %USERPROFILE%\bin\python to run Python files.
Then I downloaded setuptools files from PyPI and tried to install setuptools by using “Python setuptools install”, but it give me the “No module named ‘setuptools’” error.
Is there any way I can install Python libraries on Windows without UAC? Thanks.
I do it the following way:
Download the whl file from PyPi
Open powershell and change to the directory where the whl file is located.
Run pip install setuptools-<version-info>.whl
I'm trying to install FreeTDS using binaries from here, on Windows, but I can't figure out how to install binary files; a google search turned up nothing relevant. I'm installing so that the Python module Pymssql can be imported and used.
I'm getting the same error as in this post: https://github.com/pymssql/pymssql/issues/372
I fixed the problem by moving all the .h files from the FreeTDS and OpenSSL files I downloaded into where all the other .h files were in C:\Users\KAllen\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include, and put all the .dll files with the others in C:\Users\KAllen\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\bin
You can download the Windows binaries here:
https://sourceforge.net/projects/freetdswindows/
There is an executable installer in the ZIP file you download; install away. It should install the necessary binaries you need. Good luck!
Download and install pymssql wheels from here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql
Download and then pip install %userprofile%\downloads\pymssql-2.1.2-cp**-cp**m-win??.whl
conda install -c https://conda.anaconda.org/prometeia pymssql
WinPython may soon include pymssql by default:
https://github.com/winpython/winpython/issues/307
I am on a Windows machine and I want to install a Python module from GitHub using pip directly from IPython.
The simplest command that seems it should work is:
!pip install https://github.com/japerk/nltk-trainer.git
I have also tried:
!pip install https://github.com/japerk/nltk-trainer.git#egg=nltk-trainer
I've used variants including -vvv, etc.
However, I'm getting the following error. Why?
Cannot determine archive format of C:\Users\timo\AppData\Local\Temp\pip-build-183bwemw\nltk-trainer
go to the https://github.com/japerk/nltk-trainer and download the project zip file. extract the zip file and put it somewhere in your computer.
open command prompt in windows and go inside the folder that you extracted earlier(you must be in the folder that has setup.py file in it).
enter the following command: python setup.py install
python tries to install nltk-trainer . during installation some other dependency might be installed too. you need numpy and scipy to be installed. if any problem happened during installation of numpy or scipy try installing them manually first by using pip install numpy and pip install scipy
if you can't install numpy and scipy using pip command use the following link:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
this site has compiled version of these libraries ( and other libraries if you need to install them too) you can download .whl file that is based on your python version and os architecture and install them using pip install filename.whl command ( you need to be in the folder that your whl file is) for example for python3.4 and 64bit operating system you may download scipy‑0.16.0‑cp34‑none‑win_amd64.whl file.
I am trying to install a package named QSTK for a course that I am doing. The course points to an installation package for the 32 bit version, but I have 64 Python installed. I have found a .egg file listed on the Python packages index.
It seems to have an exe for 32 bit, but just the .egg for 64 bit. I downloaded the QSTK-0.2.6-py2.7.egg version and have been trying to install this unsucessfully so far.
Here is what I have tried:
Using easy install (from the C:\Python27\Lib\site-packages
directory):
Python easy_install -Z C:\Users\Prosserc\Downloads\QSTK-0.2.6-py2.7.egg
this has created a QSTK-0.2.6-py2.7.egg directory in my
site-packages directory which I can open and find files in. However,
I have tried to import QSTK from the python shell and get the usual
"No module named..." import error.
I looked for a setup.py file as I have used these to install
packages before, but could not find one.
I have also looked at this thread which gives details of
installing a .egg file without using easy install, but cannot figure
out what changes I would need to make to the script provided as this
is to install a specific package that I already have.
If anyone can help by explaining either how I can install this .egg file correctly or by providing a link to the QSTK modules for python 2.7 64 bit in another format this would be greatly appreciated.
I have managed to install the packages that QSTK is dependant on okay (numpy, scipy, matplotlib, pandas, python-dateutil and scikit-learn).
You should add -m before easy_install
for example:
python -m easy_install C:\Users\Prosserc\Downloads\QSTK-0.2.6-py2.7.egg
How about if you unpack the .egg (it's just a .zip in disguise), then cd into it and run python setup.py install? Will that run fine and will you then be able to import your module?
I'm saying this because if the .egg file does get put under site-packages as appropriate but you're still not able to import, this might be a problem in the code itself.
I have finally found another place to download this from with a package that works: https://pypi.python.org/pypi/QSTK/0.2.6 has a QSTK-0.2.6.tar.gz option to build it from the source code.
Unzipping this (then again once down to the .tar), I could find the setup.py file and install by going to the directory with the setup file and running:
python setup.py install
I tried copying the contents of the .egg folder in the path Lib\site-packages .
It worked and didn't throw any ModuleNotFoundError .
I found pip install qstk works perfectly for 64x 2.7 python at win 7