2016-03-13 87 views
1

運行安裝Python模塊我剛下運行以下命令安裝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... 
+0

運行嗯它並安裝它在virtualenv中的作品在我的機器上運行罰款Python的? – danidee

+0

是否在你的PATH環境變量中安裝了'tvr'目錄? – cdarke

+0

運行'pip'命令時是否收到錯誤消息?事後開啓/關閉虛擬環境?安裝過程中/之後好像有問題。 – bow

回答

0

看來,你需要import tvrenamr

+0

它仍然會產生相同的錯誤。 –

-1

從終端

,你應該能夠從終端與

machine:user$ python tvr file 
+0

python:無法打開'tvr'文件:[Errno 2]沒有這樣的文件或目錄它顯示了上述錯誤信息。 –

+1

你是不是指'python -m tvr文件'? – tdelaney

+0

@tdelaney -/usr/bin/python:沒有名爲tvr的模塊 它顯示此消息。即使我已經安裝它,它從python shell運行。 –