Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip - how to use it?
#8
(Jun-30-2017, 02:03 PM)sparkz_alot Wrote: bear in mind you need to install 'pyglet' before you install 'cocos2d'.
That's  requirement is written in setup.py
install_requires.append('pyglet>=1.2')
Additional dependencies that can be needed like numpy,Avibin,Pygame is not in setup.py.

I have a plain to write a tutorial about Packaging/Modules/setup.py and all that stuff.
Have started to think of how to do it Undecided

So if install cocos2d with pip 9.0.1 and Python 3.6.
It look like this.
C:\
λ pip install cocos2d
Collecting cocos2d
 Downloading cocos2d-0.6.4.zip (5.2MB)
   100% |████████████████████████████████| 5.2MB 146kB/s
Requirement already satisfied: six>=1.4 in c:\python36\lib\site-packages (from cocos2d)
Collecting pyglet>=1.2 (from cocos2d)
 Using cached pyglet-1.2.4-py3-none-any.whl
Building wheels for collected packages: cocos2d
 Running setup.py bdist_wheel for cocos2d ... done
 Stored in directory: C:\Users\Tom\AppData\Local\pip\Cache\wheels\39\f2\61\a6540702af5bb7f2c4a8997acdfadf33a685efd9f7c47af48c
Successfully built cocos2d
Installing collected packages: pyglet, cocos2d
Successfully installed cocos2d-0.6.4 pyglet-1.2.4
Just as in additional info there is no need to download wheel from Gohlke.
with pip 9.0.1 and Python 3.6.
It will find wheel and use it
Earlier version pip and Python on Windows did not do that.
Example:
C:\
λ pip install numpy
Collecting numpy
 Downloading numpy-1.13.0-cp36-none-win32.whl (6.8MB)
   100% |████████████████████████████████| 6.8MB 121kB/s
Installing collected packages: numpy
Successfully installed numpy-1.13.0
C:\
λ pip install pygame
Collecting pygame
 Downloading pygame-1.9.3-cp36-cp36m-win32.whl (4.0MB)
   100% |████████████████████████████████| 4.0MB 187kB/s
Installing collected packages: pygame
Successfully installed pygame-1.9.3
Reply


Messages In This Thread
pip - how to use it? - by amgp - Jun-30-2017, 06:05 AM
RE: pip - how to use it? - by snippsat - Jun-30-2017, 12:16 PM
RE: pip - how to use it? - by metulburr - Jun-30-2017, 01:27 PM
RE: pip - how to use it? - by sparkz_alot - Jun-30-2017, 02:03 PM
RE: pip - how to use it? - by metulburr - Jun-30-2017, 04:06 PM
RE: pip - how to use it? - by sparkz_alot - Jun-30-2017, 06:50 PM
RE: pip - how to use it? - by Larz60+ - Jun-30-2017, 06:52 PM
RE: pip - how to use it? - by snippsat - Jun-30-2017, 08:17 PM
RE: pip - how to use it? - by sparkz_alot - Jun-30-2017, 08:50 PM
RE: pip - how to use it? - by Larz60+ - Jul-01-2017, 01:20 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020