2017-02-15 101 views
1

我試圖安裝PyLint。安裝時我看到以下內容:如何卸載由Pip安裝的Python軟件包引入的依賴關係?

Collecting pylint 
    Downloading pylint-1.6.5-py2.py3-none-any.whl (577kB) 
    100% |████████████████████████████████| 583kB 655kB/s 
Collecting six (from pylint) 
    Using cached six-1.10.0-py2.py3-none-any.whl 
Collecting isort>=4.2.5 (from pylint) 
    Downloading isort-4.2.5-py2.py3-none-any.whl (40kB) 
    100% |████████████████████████████████| 40kB 737kB/s 
Collecting mccabe (from pylint) 
    Downloading mccabe-0.6.1-py2.py3-none-any.whl 
Collecting configparser; python_version == "2.7" (from pylint) 
    Downloading configparser-3.5.0.tar.gz 
Collecting backports.functools-lru-cache; python_version == "2.7" (from pylint) 
    Downloading backports.functools_lru_cache-1.3-py2.py3-none-any.whl 
Collecting astroid<1.5.0,>=1.4.5 (from pylint) 
    Downloading astroid-1.4.9-py2.py3-none-any.whl (213kB) 
    100% |████████████████████████████████| 215kB 713kB/s 
Collecting lazy-object-proxy (from astroid<1.5.0,>=1.4.5->pylint) 
    Downloading lazy-object-proxy-1.2.2.tar.gz 
Collecting wrapt (from astroid<1.5.0,>=1.4.5->pylint) 
    Downloading wrapt-1.10.8.tar.gz 
Building wheels for collected packages: configparser, lazy-object-proxy, wrapt 
    Running setup.py bdist_wheel for configparser ... done 
    Stored in directory: /Users/dkanesha/Library/Caches/pip/wheels/1c/bd/b4/277af3f6c40645661b4cd1c21df26aca0f2e1e9714a1d4cda8 
    Running setup.py bdist_wheel for lazy-object-proxy ... done 
    Stored in directory: /Users/dkanesha/Library/Caches/pip/wheels/06/d4/af/71508d0c69292f8c369ba3ae83cd85fabcd6956fd5709633b4 
    Running setup.py bdist_wheel for wrapt ... done 
    Stored in directory: /Users/dkanesha/Library/Caches/pip/wheels/19/8a/01/20cf74c3f38d49ef8e9b9aa7ffd38cefff79bad9f6f2c651f0 
Successfully built configparser lazy-object-proxy wrapt 
Installing collected packages: six, isort, mccabe, configparser, backports.functools-lru-cache, lazy-object-proxy, wrapt, astroid, pylint 
Successfully installed astroid-1.4.9 backports.functools-lru-cache-1.3 configparser-3.5.0 isort-4.2.5 lazy-object-proxy-1.2.2 mccabe-0.6.1 pylint-1.6.5 six-1.10.0 wrapt-1.10.8 

我能卸載這裏提到Installing collected packages: six, isort, mccabe, configparser, backports.functools-lru-cache, lazy-object-proxy, wrapt, astroid, pylint恢復到以前的狀態的包,或者可以在「安裝包收集」是指以前安裝過包?

回答

1

pip會很明確地告訴你它究竟做了什麼。如果需要的軟件包已經安裝,它們將不會被列在「成功安裝」列表中,而是會說「需求已經滿意」。如果在安裝過程中升級了依賴項,它將明確表示它找到了以前的版本,它卸載了以前的版本並安裝了新版本。

所以,是的,在你的情況下,它看起來並不像升級任何舊軟件包和純粹安裝新軟件包,所以卸載所有這些應該會使你恢復到以前的狀態。

+0

謝謝。我在哪裏可以找到關於如何操作的信息?我已經嘗試了幫助頁面。 –

+0

我主要是從實際經驗來講,不確定在這個細節中記錄的是什麼。 – deceze

+0

再次感謝。標記爲已回答。 –

相關問題