Menu
  • HOME
  • TAGS

Why I can't import Pyqt in python after install it?

python,pyqt,install,python-wheel

Did you try forcing re-installation? pip install --force-reinstall PyQt4-4.11.4-cp27-none-win_amd64.whl or pip install --upgrade --no-deps --force-reinstall PyQt4-4.11.4-cp27-none-win_amd64.whl ...

How to install mod_wsgi from lfd in 2015

mod-wsgi,python-wheel

On the lfd page is a link to: https://github.com/GrahamDumpleton/mod_wsgi/blob/master/win32/README.rst You may want to read that. The official mod_wsgi download area has binaries as .so files as explained in that link. You can still use the whl versions when you work out how to install them, but the .so option does...

If you publish Python using wheel format do you still need to publish them as egg?

python,egg,python-wheel

Can you assume your prospective users will all have pip >= 1.4 and/or setuptools >= 0.8? If so, wheels are fine. If not, an egg will help them, since previous releases of pip and setuptools don't support wheels. The fact that their Python is 2.6 or better is no guarantee...

Conditional dependency with Python Wheels

python,python-2.7,python-3.x,python-wheel

As of Wheel 0.24.0, this is support using extra_require. For instance setup( ..., extras_require={':python_version=="2.6"':: ['ipaddr']}, ... ) This is documented in the "Defining Conditional Dependencies" of the Wheel documentation and follows PEP 426....

How do you add additional files to a wheel?

python,pip,python-wheel

Have you tried using package_data in your setup.py? MANIFEST.in seems targetted for python versions <= 2.6, I'm not sure if higher versions even look at it. After exploring https://github.com/pypa/sampleproject, their MANIFEST.in says: # If using Python 2.6 or less, then have to include package data, even though # it's already...

specify wheel cache when installing a package

python,setuptools,python-wheel

To disable the wheel cache you can simply do: sudo pip install . --no-cache-dir ...

how can I install “pip wheel” on a machine without internet connection?

python,pip,virtualenv,python-wheel

You can still use that virtual env if you update pip, but better to update a to the latest virtualenv. If you don't have a connection download the wheel source package, extract it and use: pip install wheel-0.24.0/ Don't omit the final slash....

ValueError “Expected version spec” when installing local wheel via pip

python,python-2.7,pip,python-wheel

I was using a very out-of-date version of PIP. $ pip -V pip 1.3.1 from C:\Python27\lib\site-packages (python 2.7) I upgraded to pip 6.0.8 and all is well....

Cannot install numpy from wheel format

python-3.x,numpy,python-wheel

Short answer: rename the file to numpy-1.9.1%2Bmkl-cp34-none-win32.whl to install it. You can check what tags your pip tool accepts for installation by running: import pip; print(pip.pep425tags.get_supported()) In this case pip is incorrectly detecting your operating system to be 32-bits and the file you're trying to install was win_amd64 in its...

How do I upload a Universal Python Wheel for Python 2 and 3?

python,python-2.7,python-3.x,pypi,python-wheel

The command python3 setup.py sdist bdist_wheel upload creates a new wheel distribution. You'll need to include the same flags again on that command line: python3 setup.py sdist bdist_wheel --universal upload It's better to use twine to manage the uploads; it'll use an encrypted connection (setuptools uses an unencrypted connection and...

Build wheel for a package (like scipy) lacking dependency declaration

python,scipy,pip,virtualenv,python-wheel

Problem description Have a python package (like scipy), which is dependent on other packages (like numpy) but setup.py is not declaring that requirement/dependency. Building a wheel for such a package will succeed in case, current environment provides the package(s) which are needed. In case, required packages are not available, building...