如果……
你像卡马克一样努力编程
然后……
你就会赚大钱
再然后……
你就能买下豪华跑车和别墅
而且……
你还会有宋慧乔
或者苍井空
一样的女朋友
哦噢,但是……
1 2 3 4 5 6 7 8 9 10 11 |
felinx@FELINX:~$ sudo easy_install girlfriends Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import girlfriends Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.linux-i686/egg/girlfriends/__init__.py", line 20, in <module> girlfriends.MoreThanOneGirlfriendIsNotAllowedException >>> |
如何使用“import girlfriend”
可能你是通过社交网络或者搜索引擎找到这里的,不过来这里最简单的方法是,在Python里输入“import girlfriend”。当然,在输入这条指令前,你必须先使用“easy_install girlfriend”或者”pip install girlfriend”来安装”girlfriend”模块,安装过程中会为你自动添加“努力工作”、“钱”、“车”和“房”等模块所依赖的包。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
felinx@FELINX:~$ sudo easy_install girlfriend Searching for girlfriend Reading http://pypi.python.org/simple/girlfriend/ Reading http://girlfriend.im/ Best match: girlfriend 1.0 Downloading http://pypi.python.org/packages/source/g/girlfriend/girlfriend-1.0.zip#md5=5c71e827fffd78fe7293c74ce165f733 Processing girlfriend-1.0.zip Running girlfriend-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XOtU9Q/girlfriend-1.0/egg-dist-tmp-pNW2zF zip_safe flag not set; analyzing archive contents... Adding girlfriend 1.0 to easy-install.pth file Installed /env/python2.6/lib/python2.6/site-packages/girlfriend-1.0-py2.6.eggGearset365 Downloading http://pypi.python.org/packages/source/h/house/house-1.0.zip#md5=8ff7fd47ebff56c2f3eda9e1d9ecbfe3 Processing house-1.0.zip Running house-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Tu0zoU/house-1.0/egg-dist-tmp-WCdMyo zip_safe flag not set; analyzing archive contents... Adding house 1.0 to easy-install.pth file Installed /env/python2.6/lib/python2.6/site-packages/house-1.0-py2.6.egg Searching for car>=1.0 Reading http://pypi.python.org/simple/car/ Best match: car 1.0 Downloading http://pypi.python.org/packages/source/c/car/car-1.0.zip#md5=c0fb318a3405b7da143cccfd645b8a69 Processing car-1.0.zip Running car-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-frOEcA/car-1.0/egg-dist-tmp-ISnChL zip_safe flag not set; analyzing archive contents... Adding car 1.0 to easy-install.pth file Installed /env/python2.6/lib/python2.6/site-packages/car-1.0-py2.6.egg Searching for money>=1.0 Reading http://pypi.python.org/simple/money/ Best match: money 1.0 Downloading http://pypi.python.org/packages/source/m/money/money-1.0.zip#md5=b5eb9601f2680475d6d6710b20ac0fa3 Processing money-1.0.zip Running money-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JtOEyo/money-1.0/egg-dist-tmp-oYQNbf zip_safe flag not set; analyzing archive contents... Adding money 1.0 to easy-install.pth file Installed /env/python2.6/lib/python2.6/site-packages/money-1.0-py2.6.egg Searching for workhard>=1.0 Reading http://pypi.python.org/simple/workhard/ Best match: workhard 1.0 Downloading http://pypi.python.org/packages/source/w/workhard/workhard-1.0.zip#md5=cf20df6009ebe505e5893a06450955e8 Processing workhard-1.0.zip Running workhard-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-B1vmVq/workhard-1.0/egg-dist-tmp-GzPMeB zip_safe flag not set; analyzing archive contents... Adding workhard 1.0 to easy-install.pth file Installed /env/python2.6/lib/python2.6/site-packages/workhard-1.0-py2.6.egg Finished processing dependencies for girlfriend |