Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/331.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python pip3 requirements.txt充满垃圾_Python_Linux_Ubuntu_Pip_Ubuntu 18.04 - Fatal编程技术网

Python pip3 requirements.txt充满垃圾

Python pip3 requirements.txt充满垃圾,python,linux,ubuntu,pip,ubuntu-18.04,Python,Linux,Ubuntu,Pip,Ubuntu 18.04,我目前正在运行Ubuntu18.04,每当我运行pip3 freeze>requirement.txt时,我都会看到下面这个巨大的列表。根据我的研究,似乎某些安装的依赖项最终会出现在这个列表中 我的问题是,我如何删除大部分垃圾,或者至少卸载所有东西,重新开始。谢谢 此打印内容适用于您正在使用的Python版本中安装的所有软件包。正确的方法是使用virtualenv,它只使用项目真正需要的包。垃圾在哪里?对我来说,一切看起来都像格式良好的可打印文件。@jww我应该指定我正在使用此列表在Herok

我目前正在运行Ubuntu18.04,每当我运行
pip3 freeze>requirement.txt
时,我都会看到下面这个巨大的列表。根据我的研究,似乎某些安装的依赖项最终会出现在这个列表中

我的问题是,我如何删除大部分垃圾,或者至少卸载所有东西,重新开始。谢谢


此打印内容适用于您正在使用的Python版本中安装的所有软件包。正确的方法是使用virtualenv,它只使用项目真正需要的包。

垃圾在哪里?对我来说,一切看起来都像格式良好的可打印文件。@jww我应该指定我正在使用此列表在Heroku上托管一个Web应用程序。问题是,此列表中的某些项目,例如apturl无法安装;或者,至少我在尝试安装此列表中的所有内容时,出现了一个错误,即找不到apturl的0.5.2版。如果我使用pip(而不是pip3)生成相同的列表,那么列表会更短、更清晰。我建议制作一个VirtualNV,将自己与操作系统包隔离开来
apturl==0.5.2
asn1crypto==0.24.0
attrs==19.1.0
backcall==0.1.0
bleach==3.1.0
Brlapi==0.6.6
certifi==2019.3.9
chardet==3.0.4
Click==7.0
command-not-found==0.3
cryptography==2.1.4
cupshelpers==1.0
cycler==0.10.0
decorator==4.3.2
defer==1.0.6
defusedxml==0.5.0
distro-info==0.18
docopt==0.6.2
entrypoints==0.3
Flask==1.0.2
Flask-Caching==1.6.0
gunicorn==19.9.0
httplib2==0.9.2
idna==2.8
ipykernel==5.1.0
ipython==7.3.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
itsdangerous==1.1.0
jedi==0.13.3
Jinja2==2.10
jsonschema==3.0.1
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.4.0
keyring==10.6.0
keyrings.alt==3.0
kiwisolver==1.0.1
language-selector==0.1
launchpadlib==1.10.6
lazr.restfulclient==0.13.5
lazr.uri==1.0.3
louis==3.5.0
macaroonbakery==1.1.3
Mako==1.0.7
MarkupSafe==1.1.1
matplotlib==3.0.3
mistune==0.8.4
nbconvert==5.4.1
nbformat==4.4.0
netifaces==0.10.4
nltk==3.4
notebook==5.7.4
numpy==1.16.2
oauth==1.0.1
olefile==0.45.1
pandocfilters==1.4.2
parso==0.3.4
pexpect==4.6.0
pickleshare==0.7.5
Pillow==5.1.0
pipreqs==0.4.9
praw==6.1.1
prawcore==1.0.1
prometheus-client==0.6.0
prompt-toolkit==2.0.9
protobuf==3.0.0
ptyprocess==0.6.0
pycairo==1.16.2
pycrypto==2.6.1
pycups==1.9.73
Pygments==2.3.1
pygobject==3.26.1
pymacaroons==0.13.0
PyNaCl==1.1.2
pyparsing==2.3.1
pyRFC3339==1.0
pyrsistent==0.14.11
python-apt==1.6.3+ubuntu1
python-dateutil==2.8.0
python-debian==0.1.32
pytz==2018.3
pyxdg==0.25
PyYAML==3.12
pyzmq==18.0.0
qtconsole==4.4.3
reportlab==3.4.0
requests==2.21.0
requests-unixsocket==0.1.5
scour==0.36
SecretStorage==2.3.1
Send2Trash==1.5.0
simplejson==3.13.2
singledispatch==3.4.0.3
six==1.12.0
system-service==0.3
systemd-python==234
terminado==0.8.1
testpath==0.4.2
textblob==0.15.3
tornado==6.0.1
traitlets==4.3.2
ubuntu-drivers-common==0.0.0
ufw==0.35
unattended-upgrades==0.1
update-checker==0.16
urllib3==1.24.1
usb-creator==0.3.3
virtualenv==16.4.3
wadllib==1.3.2
wcwidth==0.1.7
webencodings==0.5.1
websocket-client==0.55.0
Werkzeug==0.14.1
widgetsnbextension==3.4.2
xkit==0.0.0
yagmail==0.11.214
yarg==0.1.9
zope.interface==4.3.2