gpt4 book ai didi

python - 直接从终端运行已安装的 python 模块

转载 作者:行者123 更新时间:2023-12-04 18:54:31 25 4
gpt4 key购买 nike

我刚刚通过运行以下命令安装了 tvrenamr 模块:

pip install tvrenamr

不,当我尝试通过按照文档中指定的终端运行它来使用它时: https://tvrenamr.readthedocs.org/en/latest/usage.html

我收到以下错误:
No command 'tvr' found, did you mean:
Command 'tr' from package 'coreutils' (main)
Command 'tar' from package 'tar' (main)
Command 'tv' from package 'treeviewx' (universe)
Command 'tdr' from package 'devtodo' (universe)
Command 'tor' from package 'tor' (universe)
tvr: command not found

请帮助我理解为什么模块没有从终端运行以及如何运行它。

编辑:卸载并重新安装后,我收到以下消息:
Downloading/unpacking tvrenamr
Downloading tvrenamr-3.6.2-py2.py3-none-any.whl (384kB): 384kB downloaded
Installing collected packages: tvrenamr
Compiling /tmp/pip-build-yZsRKH/tvrenamr/tvrenamr/vendor/yaml/__init__.py ...
File "/tmp/pip-build-yZsRKH/tvrenamr/tvrenamr/vendor/yaml/__init__.py", line 284
class YAMLObject(metaclass=YAMLObjectMetaclass):
^
SyntaxError: invalid syntax

Successfully installed tvrenamr
Cleaning up...

最佳答案

看来你需要import tvrenamr .

关于python - 直接从终端运行已安装的 python 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35972702/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com