autosub icon indicating copy to clipboard operation
autosub copied to clipboard

command not found?

Open careyzhang66 opened this issue 5 years ago • 9 comments

Hello,I want to know how to get start autosub,these codes on my mac terminal,Can someone help me?

Collecting autosub Downloading https://files.pythonhosted.org/packages/f3/31/d3d677e97ec3e24ae6131df91eb5d20650309e3ed5122361613792180fb7/autosub-0.3.12.tar.gz Collecting six Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl Collecting google-api-python-client>=1.4.2 (from autosub) Downloading https://files.pythonhosted.org/packages/7a/84/ffde3c95d4162cdc8bae710fecc6873cccb05ac33afc3b2c925c74cc0150/google-api-python-client-1.7.8.tar.gz (141kB) 100% |████████████████████████████████| 143kB 23kB/s Collecting requests>=2.3.0 (from autosub) Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB) 100% |████████████████████████████████| 61kB 14kB/s Collecting pysrt>=1.0.1 (from autosub) Downloading https://files.pythonhosted.org/packages/f6/33/16ad65a8973cb8bcb494af09ee1b9ab5ffdd6ff300bce5d3ac7d3cb1f2cc/pysrt-1.1.1.tar.gz (104kB) 100% |████████████████████████████████| 112kB 50kB/s Collecting progressbar>=2.3 (from autosub) Downloading https://files.pythonhosted.org/packages/a3/a6/b8e451f6cff1c99b4747a2f7235aa904d2d49e8e1464e0b798272aa84358/progressbar-2.5.tar.gz Collecting httplib2<1dev,>=0.9.2 (from google-api-python-client>=1.4.2->autosub) Downloading https://files.pythonhosted.org/packages/75/d0/f213003c9deec99fb4f46e54580b93a3b121c487d9d6d888fc12267eb2a2/httplib2-0.12.1.tar.gz (218kB) 100% |████████████████████████████████| 225kB 49kB/s Collecting google-auth>=1.4.1 (from google-api-python-client>=1.4.2->autosub) Downloading https://files.pythonhosted.org/packages/c5/9b/ed0516cc1f7609fb0217e3057ff4f0f9f3e3ce79a369c6af4a6c5ca25664/google_auth-1.6.3-py2.py3-none-any.whl (73kB) 100% |████████████████████████████████| 81kB 36kB/s Collecting google-auth-httplib2>=0.0.3 (from google-api-python-client>=1.4.2->autosub) Downloading https://files.pythonhosted.org/packages/33/49/c814d6d438b823441552198f096fcd0377fd6c88714dbed34f1d3c8c4389/google_auth_httplib2-0.0.3-py2.py3-none-any.whl Collecting uritemplate<4dev,>=3.0.0 (from google-api-python-client>=1.4.2->autosub) Downloading https://files.pythonhosted.org/packages/f6/25/66a49231b44409d7f07cfcf2506a8b070ce3c99fc47cc256bea833f24791/uritemplate-3.0.0-py2-none-any.whl Collecting certifi>=2017.4.17 (from requests>=2.3.0->autosub) Downloading https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl (158kB) 100% |████████████████████████████████| 163kB 38kB/s Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.3.0->autosub) Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) 100% |████████████████████████████████| 143kB 44kB/s Collecting idna<2.9,>=2.5 (from requests>=2.3.0->autosub) Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB) 100% |████████████████████████████████| 61kB 29kB/s Collecting urllib3<1.25,>=1.21.1 (from requests>=2.3.0->autosub) Downloading https://files.pythonhosted.org/packages/df/1c/59cca3abf96f991f2ec3131a4ffe72ae3d9ea1f5894abe8a9c5e3c77cfee/urllib3-1.24.2-py2.py3-none-any.whl (131kB) 100% |████████████████████████████████| 133kB 37kB/s Collecting cachetools>=2.0.0 (from google-auth>=1.4.1->google-api-python-client>=1.4.2->autosub) Downloading https://files.pythonhosted.org/packages/39/2b/d87fc2369242bd743883232c463f28205902b8579cb68dcf5b11eee1652f/cachetools-3.1.0-py2.py3-none-any.whl Collecting rsa>=3.1.4 (from google-auth>=1.4.1->google-api-python-client>=1.4.2->autosub) Downloading https://files.pythonhosted.org/packages/02/e5/38518af393f7c214357079ce67a317307936896e961e35450b70fad2a9cf/rsa-4.0-py2.py3-none-any.whl Collecting pyasn1-modules>=0.2.1 (from google-auth>=1.4.1->google-api-python-client>=1.4.2->autosub) Downloading https://files.pythonhosted.org/packages/da/98/8ddd9fa4d84065926832bcf2255a2b69f1d03330aa4d1c49cc7317ac888e/pyasn1_modules-0.2.4-py2.py3-none-any.whl (66kB) 100% |████████████████████████████████| 71kB 37kB/s Collecting pyasn1>=0.1.3 (from rsa>=3.1.4->google-auth>=1.4.1->google-api-python-client>=1.4.2->autosub) Downloading https://files.pythonhosted.org/packages/7b/7c/c9386b82a25115cccf1903441bba3cbadcfae7b678a20167347fa8ded34c/pyasn1-0.4.5-py2.py3-none-any.whl (73kB) 100% |████████████████████████████████| 81kB 43kB/s Installing collected packages: httplib2, cachetools, pyasn1, rsa, six, pyasn1-modules, google-auth, google-auth-httplib2, uritemplate, google-api-python-client, certifi, chardet, idna, urllib3, requests, pysrt, progressbar, autosub Running setup.py install for httplib2 ... done The scripts pyrsa-decrypt, pyrsa-encrypt, pyrsa-keygen, pyrsa-priv2pub, pyrsa-sign and pyrsa-verify are installed in '/Users/mymac/Library/Python/2.7/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Running setup.py install for google-api-python-client ... done The script chardetect is installed in '/Users/mymac/Library/Python/2.7/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Running setup.py install for pysrt ... done Running setup.py install for progressbar ... done Running setup.py install for autosub ... done Successfully installed autosub-0.3.12 cachetools-3.1.0 certifi-2019.3.9 chardet-3.0.4 google-api-python-client-1.7.8 google-auth-1.6.3 google-auth-httplib2-0.0.3 httplib2-0.12.1 idna-2.8 progressbar-2.5 pyasn1-0.4.5 pyasn1-modules-0.2.4 pysrt-1.1.1 requests-2.21.0 rsa-4.0 six-1.12.0 uritemplate-3.0.0 urllib3-1.24.2 Mac-Pro:Downloads mymac$ autosub -h -bash: autosub: command not found

careyzhang66 avatar Apr 18 '19 16:04 careyzhang66

-bash: autosub: command not found

FisherMS avatar Apr 19 '19 04:04 FisherMS

python2不在系统环境变量PATH里,看路径名感觉是macos,请自行谷歌macos如何添加python到系统环境变量PATH中

BingLingGroup avatar Apr 21 '19 23:04 BingLingGroup

Same problem here.

Installing collected packages: httplib2, cachetools, pyasn1, pyasn1-modules, six, rsa, google-auth, google-auth-httplib2, uritemplate, google-api-python-client, urllib3, certifi, chardet, idna, requests, pysrt, python-utils, progressbar2, autosub
Running setup.py install for autosub ... done
Successfully installed autosub-0.4.0 cachetools-3.1.1 certifi-2019.9.11 chardet-3.0.4 google-api-python-client-1.7.11 google-auth-1.6.3 google-auth-httplib2-0.0.3 httplib2-0.13.1 idna-2.8 progressbar2-3.46.1 pyasn1-0.4.7 pyasn1-modules-0.2.6 pysrt-1.1.1 python-utils-2.3.0 requests-2.22.0 rsa-4.0 six-1.12.0 uritemplate-3.0.0 urllib3-1.25.6

yky@Vivobook:~$ autosub
autosub: command not found

I tried both pip install and pip3 install and the results are same. I have both Python2.7 and Python3 installed.

Cybernetic1 avatar Sep 25 '19 00:09 Cybernetic1

@Cybernetic1 http://osxdaily.com/2018/05/24/command-not-found-mac-terminal-error-fix/ Hope this can help you.

BingLingGroup avatar Sep 25 '19 01:09 BingLingGroup

Where is the executable located after pip installation? I'm using Linux Ubuntu.

Cybernetic1 avatar Sep 25 '19 01:09 Cybernetic1

Honestly speaking I don't encounter the "command not found" issue when I'm using Ubuntu. I checked my Ubuntu by using which autosub and it is located at /usr/local/bin/autosub.

BingLingGroup avatar Sep 25 '19 01:09 BingLingGroup

I downloaded the zip installer and ran sudo python setup.py install and then it succeeded. But now that I have autosub installed, I cannot reproduce the situation when I used only pip install. Anyway, I got it installed now. Perhaps others should try sudo pip install.

Cybernetic1 avatar Sep 25 '19 03:09 Cybernetic1

That makes sense because when I install the python package, I've already in root account by using su. I forgot about it before.

BingLingGroup avatar Sep 25 '19 03:09 BingLingGroup

可以可以,after i add sudo before pip, then the path was right created....

shukangzhang avatar Mar 27 '20 21:03 shukangzhang