在windows下如何正確安裝curses模組

2022-04-10 18:58:06 字數 1428 閱讀 6666

首先接觸到這個坑是做乙個小遊戲,需要將小遊戲顯示在終端螢幕上面,因為我是windows系統,所以在安裝curses庫的時候,用pip安裝,總是失敗,接下來我就給大家帶來我的解決方案和在解決這個問題當中所踩的坑。

接下來我們就需要找適合我們當前所安裝直譯器的軟體啦,然後cp代表的是python直譯器的版本號,例如cp36就相當於python3.6的直譯器啦,如果不知道當前直譯器版本的話,可以通過以下**進行查詢。

import pip._internal

print(pip._internal.pep425tags.get_supported())

>pip install whell
然後重新匯入pep425tags模組,然後又踩坑了……

import wheel.pep425tags as e

print( print( e.get_supported(1) ) )

[('cp36', 'cp36m', 'win32'), ('cp36', 'none', 'win32'), ('cp36', 'none', 'any'), ('cp3', 'none', 'any'), ('cp35', 'none', 'any'), ('cp34', 'none', 'any'), ('cp33', 'none', 'any'), ('cp32', 'none', 'any'), ('cp31', 'none', 'any'), ('cp30', 'none', 'any'), ('py3', 'none', 'win32'), ('py36', 'none', 'any'), ('py3', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]

none

pip3 install curses-2.2.1+utf8-cp36-cp36m-win32.whl

# error: could not install packages due to an environmenterror: [errno 2] no such file or directory: 'f:\\pythonlearn\\game2048\\curses-2.2.1+utf8-cp36-cp36m-win32.whl'

然後光榮報錯,查詢了一下發現是沒有把這個檔案移動到正確位置,最後很顯然成功了,qaq,也給自己長了個記性,慢慢來。

在windows下安裝webpy

prerequisite 1.install python 2.download webpy steps 1.解壓webpy壓縮包 2.type win r type cmd 在webpy安裝目錄下 type python setup.py install import web urls index...

Theano 在windows下安裝

theano win8 一切為了 deep learning 選擇安裝方式 anacondace 學術免費 simply download and execute the installer from anacondace downlowad page then download and execu...

在Windows下安裝UAAC

23年工作經驗,長期在杜邦 歐文斯科寧 莊信萬豐等從事製造業資訊化工作,規劃 實施了大量mes sap erp lims bpm等專案,積累了豐富的製造業數位化轉型經驗。uaac是uaa command lineclient,在predix中以命令列的方式用來管理使用者及相關許可權。儘管predix...