Python之Web開發(fā)初學者教程—ubuntu中配置python3
ubuntu 默認安裝了python 3.6.9
安裝后默認不識別python命令,需要在bin下創(chuàng)建創(chuàng)建鏈接
ln -s /usr/bin/python3.6 /usr/bin/python
同理:pip3 符號鏈接為pip
ln -s /usr/bin/pip3 /usr/bin/pip
安裝pyinstaller
如果python的環(huán)境已經(jīng)配置好了,一行代碼便可實現(xiàn)pyinstaller的安裝。在cmd中輸入(pip3 是python3安裝)
pip3 install pyinstaller -i http://mirrors.aliyun.com/pypi/simple? --trusted-host mirrors.aliyun.com
安裝報錯,還是采用運行安裝包來安裝pyinstaller
先下載Python軟件包.iso文件,下載地址:https://download.csdn.net/download/zhengyuanyehit/88894034
點擊【確定】
會安裝到/usr/local/lib/python
版本號
/dist-packages
路徑下
安裝pycharm
測試
打開pycharm,
打開/usr/tmp/hello.py
文章來源:http://www.zghlxwxcb.cn/news/detail-840672.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-840672.html
到了這里,關于Python之Web開發(fā)初學者教程—ubuntu中配置python3的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!