如何解决TypeError:无法在python的路径组件中混合字符串和字节
Using cached jnius-1.1.0.tar.gz (28 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python37-32\python.exe' -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-instal
l-g13whan3\\jnius\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-g13whan3\\jnius\\setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.
read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-94rlagf8'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-g13whan3\jnius\
Complete output (11 lines):
WARNING: Not able to assign machine() = AMD64 to a cpu value!
Using cpu = 'i386' instead!
Traceback (most recent call last):
File "<string>",line 1,in <module>
File "C:\Users\user\AppData\Local\Temp\pip-install-g13whan3\jnius\setup.py",line 153,in <module>
join(jre_home,'bin','server')
File "c:\users\user\appdata\local\programs\python\python37-32\lib\ntpath.py",line 115,in join
genericpath._check_arg_types('join',path,*paths)
File "c:\users\user\appdata\local\programs\python\python37-32\lib\genericpath.py",line 151,in _check_arg_types
raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
在下载jnius软件包时出现此错误首先显示安装Cython后缺少Cython软件包,我尝试安装jnius,然后显示上述错误,然后尝试安装pyjnius,并显示
PermissionError:[WinError 5]访问被拒绝
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。