第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

一個venv中有兩個pip版本-如何刪除其中一個

一個venv中有兩個pip版本-如何刪除其中一個

胡子哥哥 2021-05-12 18:17:40
我已經(jīng)安裝了兩個版本的pip的venv,如何刪除其中一個?Venv默認(rèn)使用10.0.1,但是當(dāng)我嘗試運行時python -m pip install --upgrade pip我得到:Requirement already up-to-date: pip in c:\users\<username>\pycharmprojects\convertshapefile\venv\lib\site-packages (18.0)ls來自<project>\venv\Lib\site-packages:Mode                LastWriteTime         Length Name----                -------------         ------ ----d-----       03.08.2018     14:36                pipd-----       02.08.2018     16:58                pip-10.0.1-py3.7.eggd-----       03.08.2018     14:36                pip-18.0.dist-infod-----       02.08.2018     16:59                pyshp-1.2.12.dist-infod-----       02.08.2018     16:59                __pycache__-a----       03.08.2018     14:36             31 easy-install.pth-a----       02.08.2018     16:58         563215 setuptools-39.1.0-py3.7.egg-a----       02.08.2018     16:58             31 setuptools.pth-a----       02.08.2018     16:59          52285 shapefile.py編輯:當(dāng)我將pip-10.0.1-py3.7.egg重命名為pip-10.0.1-py3.7.egg_xxx之后,我得到了(venv) PS C:\Users\<username>\PycharmProjects\ConvertShapefile> pipTraceback (most recent call last):  File "C:\Users\<username>\PycharmProjects\ConvertShapefile\venv\lib\site-packages\setuptools-39.1.0-py3.7.egg\pkg_resources\__init__.py", line 574, in _build_master  File "C:\Users\<username>\PycharmProjects\ConvertShapefile\venv\lib\site-packages\setuptools-39.1.0-py3.7.egg\pkg_resources\__init__.py", line 892, in require  File "C:\Users\<username>\PycharmProjects\ConvertShapefile\venv\lib\site-packages\setuptools-39.1.0-py3.7.egg\pkg_resources\__init__.py", line 783, in resolvepkg_resources.VersionConflict: (pip 18.0 (c:\users\<username>\pycharmprojects\convertshapefile\venv\lib\site-packages), Requirement.parse('pip==10.0.1'))During handling of the above exception, another exception occurred:
查看完整描述

1 回答

?
呼如林

TA貢獻(xiàn)1798條經(jīng)驗 獲得超3個贊

嘗試重命名pip-10.0.1-py3.7.eggpip-10.0.1-py3.7.egg_nope。

如果這樣可以使Python使用18.x,則可以安全地刪除現(xiàn)在重命名的.egg文件。


查看完整回答
反對 回復(fù) 2021-05-18
  • 1 回答
  • 0 關(guān)注
  • 416 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號