小编Ser*_*Gün的帖子

无效要求

我用下面的方法将我的项目的需求转换成txt文件。

pip freeze > requirements.txt
Run Code Online (Sandbox Code Playgroud)

我尝试使用下面的代码加载生成的txt文件来测试它,但出现以下错误。我该如何解决这个问题。

python -m pip install -r requirements.txt


Usage: pip [options]

ERROR: Invalid requirement: -andas @ file:///C:/ci/pandas_1592833613419/work
pip: error: no such option: -a


-andas @ file:///C:/ci/pandas_1592833613419/work
absl-py==0.11.0
alabaster==0.7.12
anaconda-client==1.7.2
anaconda-navigator==1.9.12
anaconda-project==0.8.3
argh==0.26.2
asn1crypto==1.3.0
astroid @ file:///C:/ci/astroid_1592487315634/work
astropy==4.0.1.post1
astunparse==1.6.3
atomicwrites==1.4.0
attrs==19.3.0
autopep8 @ file:///tmp/build/80754af9/autopep8_1592412889138/work
Babel==2.8.0
backcall==0.2.0
backports.functools-lru-cache==1.6.1
backports.shutil-get-terminal-size==1.0.0
backports.tempfile==1.0
backports.weakref==1.0.post1
bcrypt==3.1.7
beautifulsoup4==4.9.1
bitarray @ file:///C:/ci/bitarray_1594751093906/work
bkcharts==0.2
bleach==3.1.5
bokeh @ file:///C:/ci/bokeh_1593178781838/work
boto==2.49.0
Bottleneck==1.3.2
bower==0.0.0
brotlipy==0.7.0
cachetools==4.1.1
certifi==2020.6.20
cffi==1.14.0
chardet==3.0.4
click==7.1.2
cloudpickle @ file:///tmp/build/80754af9/cloudpickle_1594141588948/work
clyent==1.2.2
colorama==0.4.3
comtypes==1.1.7
conda==4.8.3
conda-build==3.18.11 …
Run Code Online (Sandbox Code Playgroud)

git-bash requirements.txt

6
推荐指数
1
解决办法
1万
查看次数

如何在python中的两个列表之间找到不同字符的数量?

我有 2 个列表:

A:[2 1 2 6 6 7 1 7 5 9 2 6 6 6 6 6 1 0 5 8 8 7 8 1 7 5 4 9 2 9 4 7 6 8 9 4 3]

B:[2 8 2 6 6 7 1 9 8 5 2 2 6 6 6 6 1 0 5 2 8 7 3 4 7 5 4 9 2 9 4 7 6 8 9 4 3]
Run Code Online (Sandbox Code Playgroud)

我想找到相同字符的数量并在 PYTHON 中打印出来。我怎样才能做到这一点?它还应该测试该字符是否与另一个列表的位置相同。我是 …

python

1
推荐指数
1
解决办法
71
查看次数

标签 统计

git-bash ×1

python ×1

requirements.txt ×1