国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > Python > 正文

詳解Python pygame安裝過程筆記

2020-02-16 01:38:48
字體:
來源:轉載
供稿:網友

今天看到一個教程,是關于Python安裝pygame模塊的。覺得很好,拿來分享一下。

安裝Python

額,這個小題貌似在這里很是多余啊。但是為了照顧到剛剛學習Python的童鞋,我還是多啰嗦兩句吧。

具體如下:

我們要到Python官網。去下載我們需要的版本。我這里下載的是windows64位 的Python2.7 msi。安裝的過程如果不懂,選擇為默認即可。

安裝easy_install

至于這是個什么東東?我們大可不必勞心,現在只需要知道它能幫助我們安裝一些庫就可以了。具體的安裝過程也很簡單,只需要下載這個庫,使用python的命令進行安裝即可。

安裝pip

好了,經過了前面的兩步,想必大家(尤其是剛入門的童鞋)肯定會很心煩了吧,怎么需要裝這么多的東西。但是咧,千萬不要灰心,因為好日子馬上就要來了。pip就是這么一款能解放你安裝庫的復雜勞動的一款神器。下面就一起來看一看怎么安裝pip吧。

在此之前,一定要確認你的windows系統中已經安裝好了Python和easy_install。

安裝成功的標志:

Microsoft Windows [版本 6.1.7600]版權所有 (c) 2009 Microsoft Corporation。保留所有權利。C:/Users/Administrator>pythonPython 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> exit()C:/Users/Administrator>easy_install -versionusage: easy_install [options] requirement_or_url ...  or: easy_install --helperror: option -r not recognizedC:/Users/Administrator>

接下來就是把目錄切換到python的安裝目錄下的Script文件夾下,輸入
easy_install pip。當然了如果要想方便一些的話,可以把這個路徑配置到你的環境變量中(至于怎么配,網上的相關教程很多也很詳細。我就不重復的造輪子了)。

驗證一下:

C:/Users/Administrator>pip -vUsage: pip <command> [options]Commands: install           Install packages. download          Download packages. uninstall          Uninstall packages. freeze           Output installed packages in requirements format. list            List installed packages. show            Show information about installed packages. search           Search PyPI for packages. wheel            Build wheels from your requirements. hash            Compute hashes of package archives. completion         A helper command used for command completion help            Show help for commands.General Options: -h, --help         Show help. --isolated         Run pip in an isolated mode, ignoring               environment variables and user configuration. -v, --verbose        Give more output. Option is additive, and can be               used up to 3 times. -V, --version        Show version and exit. -q, --quiet         Give less output. --log <path>        Path to a verbose appending log. --proxy <proxy>       Specify a proxy in the form               [user:passwd@]proxy.server:port. --retries <retries>     Maximum number of retries each connection should               attempt (default 5 times). --timeout <sec>       Set the socket timeout (default 15 seconds). --exists-action <action>  Default action when a path already exists:               (s)witch, (i)gnore, (w)ipe, (b)ackup. --trusted-host <hostname>  Mark this host as trusted, even though it does               not have valid or any HTTPS. --cert <path>        Path to alternate CA bundle. --client-cert <path>    Path to SSL client certificate, a single file               containing the private key and the certificate               in PEM format. --cache-dir <dir>      Store the cache data in <dir>. --no-cache-dir       Disable the cache. --disable-pip-version-check               Don't periodically check PyPI to determine               whether a new version of pip is available for               download. Implied with --no-index.C:/Users/Administrator>            
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 南丰县| 酉阳| 沈丘县| 盈江县| 汉川市| 上虞市| 东丽区| 南澳县| 兖州市| 拉萨市| 阿拉善左旗| 五家渠市| 磴口县| 台湾省| 文水县| 荣昌县| 栾城县| 榆社县| 西乌| 枣庄市| 南城县| 龙口市| 恭城| 宁国市| 莫力| 武功县| 杭锦旗| 奉节县| 乌鲁木齐市| 霍城县| 卢湾区| 渭南市| 新巴尔虎左旗| 永新县| 高安市| 北海市| 岳池县| 江山市| 谷城县| 永胜县| 伊宁市|