檢視python的安裝路徑
whereis python
檢視python2和python3
whereis python2
whereis python3
檢視使用pip安裝的軟體包
pip list
python2檢視pip安裝的軟體包名稱及版本
python2 -m pip list
python3檢視pip安裝的軟體包及版本
python3 -m pip list
檢視pip安裝的軟體包路徑
pip show gym
參考文獻
[1]
檢視python模組的安裝路徑
python安裝的模型安裝路徑必須在sys.path這個list中,否則不能被正常import進來,檢視sys.path import sys sys,path有多種方法可以檢視特定模組的安裝路徑 命令列使用pydoc modules命令 例子 pydoc gensim在python互動直譯器中使用...
Python檢視路徑
先要裝載 os模組,代表當前的路徑,代表當前路徑的上一級路徑,當前路徑是f temp,則 的絕對路徑就是f temp,的絕對路徑就是f import os print os.getcwd print os.path.abspath print os.path.abspath os.curdir 獲取...
Mac檢視Python安裝路徑和版本
本機使用版本 python 3.7.4 路徑為homebrew安裝 usr local cellar python 下面是總結的,我覺得挺好,分享 mac系統自帶python路徑為 system library frameworks python.framework version 這裡可能會有多個...