Since the day I started building my website, I installed many packages sometimes to test bunch of codes, sometimes for the project itself (Later I figured out it's not the package needed). But now, when I run pip freeze
I have a list of packages, It becomes hard to me to uninstall packages that aren't used. I am about to deploy my website.
从我开始构建我的网站的那天开始,我有时会安装许多软件包以测试一堆代码,有时候是为了项目本身(后来我发现它不是所需的软件包)。但是现在,当我运行pip freeze我有一个包列表时,我很难卸载未使用的包。我即将部署我的网站。
I'm using the latest version of pip
, and running a Django Project I have virtual environment with virtualenv
python 3.5
我正在使用最新版本的pip,并运行Django项目我有虚拟环境与virtualenv python 3.5
OS: Linux (Ubuntu)
操作系统:Linux(Ubuntu)
Many thanks you awesome people!
非常感谢你们真棒!
1 个解决方案
#1
0
you can uninstall using a requirements package
您可以使用需求包进行卸载
simply create / take your requriements list like so:
只需创建/获取您的需求列表,如下所示:
django
flask
other_packages
put that in a text file called requirements.txt
把它放在一个名为requirements.txt的文本文件中
then do
然后做
pip uninstall -r requirements.txt
or in your case
或者在你的情况下
pip3 uninstall -r requirements.txt
#1
0
you can uninstall using a requirements package
您可以使用需求包进行卸载
simply create / take your requriements list like so:
只需创建/获取您的需求列表,如下所示:
django
flask
other_packages
put that in a text file called requirements.txt
把它放在一个名为requirements.txt的文本文件中
then do
然后做
pip uninstall -r requirements.txt
or in your case
或者在你的情况下
pip3 uninstall -r requirements.txt