jython[errno 2]在安装了pip的终端中没有这样的文件或目录

nmpmafwu  于 2021-08-22  发布在  Java
关注(0)|答案(0)|浏览(249)

我正在尝试使用jython pip安装robotframework,如下所示:

jython -m pip install /Users/{user}/Downloads/robotframework-3.2.2-py2.py3-none-any.whl

但我会得到这个错误:

File "/Users/{user}/jython2.7.2/bin/jython", line 601, in <module>
main(sys.argv)
File "/Users/{user}/jython2.7.2/bin/jython", line 546, in main
command = jython_command.command
File "/Users/{user}/jython2.7.2/bin/jython", line 340, in command
self.set_encoding()
File "/Users/{user}/jython2.7.2/bin/jython", line 309, in set_encoding
if "JAVA_ENCODING" not in os.environ and self.uname == "darwin" and "file.encoding" not in self.args.properties:
File "/Users/{user}/jython2.7.2/bin/jython", line 171, in uname
uname = subprocess.check_output(["uname"]).strip().lower()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 216, in check_output
process = Popen(stdout=PIPE, *popenargs,**kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

当我执行以下语句时,也会出现此错误:

jython

我正在用macos big sur开发macbook。环境变量路径设置为:/users/{user}/jython2.7.2/bin

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题