Install Python packages in Windows 7

In Windows you should use pip package manager or precompiled wheel files (.whl) to keep out of trouble.

Install Python packages in Windows

As said in the official documentation, first thing to try to use is the package manager pip. With Python 3.4 and later it is installed by default. If you have your Python directories in the Windows PATH enviroment variable you should be able to use the pip install from the cmd line.

$ pip3.4 install <module-name>

If the package is dependend on some other modules the pip tries to download the prerequired too. If it fails you can than try to do the second most simple way. Use the precompiled wheel files (.whl) from this site. It’s usefull for some bigger scientific modules as Numpy, Scipy, Matplotlib or Kivy etc. The full list is availible on the web itself.

Later you can again use pip to load them up (install) in your current python distribution with cmd command:

$ cd <directory_with_Kivy_whl>
$ pip3.4 install "module-version+additions-cp34-none-win32.whl"

You surely want to download the exact version you need. So be patient and chose the Python / CPython version (-cp34-), Windows bit version (-win32.whl for 32bit) as mentioned in the wheel file name. Otherwise it will mess things up but probably it just will not work.

References

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *