我已通过$ curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python3
我已经安装了python2和python3:
echo $PATH
/Users/joseph/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
which python3
/usr/local/bin/python3
which pipsi
/Users/joseph/.local/bin/pipsi
pipsi install pew
Traceback (most recent call last):
**long lines of tracebacks**
FileNotFoundError: [Errno 2] No such file or directory: 'virtualenv': 'virtualenv'
which virtualenv
virtualenv not found
据我所知,pipsi的安装带有自己的virtualenv,位于Users/joseph/.local/venvs/pipsi/bin/virtualenv
我在网上发现了this:
我没有应用上面显示的方法。我相信第三种方法最接近我的需要,但我甚至不知道编辑pipsi文件是否是我需要做的。我想向社区征求意见。 为什么我得到FileNotFoundError?
File "/Users/joseph/.local/bin/pipsi", line 11, in <module>
load_entry_point('pipsi==0.9', 'console_scripts', 'pipsi')()
File "/Users/joseph/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Users/joseph/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/joseph/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/joseph/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/joseph/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/joseph/.local/venvs/pipsi/lib/python3.6/site-packages/click/decorators.py", line 27, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/Users/joseph/.local/venvs/pipsi/lib/python3.6/site-packages/pipsi.py", line 366, in install
if repo.install(package, python, editable):
File "/Users/joseph/.local/venvs/pipsi/lib/python3.6/site-packages/pipsi.py", line 236, in install
if Popen(args).wait() != 0:
File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)