python3 5安裝pycrypto的問題

2021-08-08 08:29:09 字數 475 閱讀 7276

crypto是乙個很好用的加密演算法包,可惜在windows上安裝時有許多坑,今天試了很久終於安裝成功了,在這裡簡要的記錄一下

(1)不要使用命令pip install crypto安裝,這個命令安裝的是crypto包,並不能用

(2)安裝pycrypto時要注意版本,如果使用python3.5的,可以發現官網上並沒有對應的pycrypto版本,有人在github上自己編譯了乙份,經過測試是可以使用的

安裝命令如下:

pip install --use-wheel --no-index --find-links=/raw/master/pycrypto-2.6.1-cp35-none-win_amd64.whl pycrypto
(3)在匯入crypto時需要注意:

from crypto.cipher import aes
兩個c都要大寫

Linux手工安裝官方Python3 5

yum install gcc patch libffi devel python devel zlib devel bzip2 devel openssl devel ncurses devel sqlite devel readline devel tk devel gdbm devel db4...

python 3 5 學習筆記

字串方法 msg this is message msg.title 首字母大寫 msg.lower 字串全部小寫 msg.upper 字串全部大寫 msg.rstrip 刪除字串前後的空格 msg.lstrip 刪除字串前面的空格 msg.strip 刪除字串後面的空格 str msg 將msg轉...

python3 5下sklearn包的安裝報錯

之前跟著書上安裝了numpy和scipy,版本如圖 然後某一天我需要乙個sklearn的包 根據某書,用管理員許可權開啟乙個cmd終端,輸入命令 pip3 install u scikit learn然後就安裝成功了。然後當我匯入時 import sklearn.datasets發生錯誤提示如下 是...