bilylee / SiamFC-TensorFlow

A TensorFlow implementation of the SiamFC tracker
MIT License
358 stars 112 forks source link

pip install sacred 不成功 #92

Closed 1633146782 closed 4 years ago

1633146782 commented 4 years ago

ERROR: Command errored out with exit status 1: command: /home/ailab/anaconda3/envs/tensorflow1.4/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-w4pcmR/setup.py'"'"'; file='"'"'/tmp/pip-req-build-w4pcmR/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 /tmp/pip-req-build-w4pcmR/pip-egg-info cwd: /tmp/pip-req-build-w4pcmR/ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-req-build-w4pcmR/setup.py", line 42, in install_requires=Path("requirements.txt").read_text().splitlines(), AttributeError: 'PosixPath' object has no attribute 'read_text'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

bilylee commented 4 years ago

Just use pip install sacred should be fine. I am not sure why did you get these errors.

1633146782 commented 4 years ago

thank you sir!

------------------ 原始邮件 ------------------ 发件人: "bilylee"<notifications@github.com>; 发送时间: 2019年12月24日(星期二) 下午4:01 收件人: "bilylee/SiamFC-TensorFlow"<SiamFC-TensorFlow@noreply.github.com>; 抄送: "liujinlong"<1633146782@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [bilylee/SiamFC-TensorFlow] pip install sacred 不成功 (#92)

Just use pip install sacred should be fine. I am not sure why did you get these errors.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

yinruiying commented 4 years ago

你好,我使用pip install sacred命令进行安装,遇到了相同的错误。请问该怎么解决? ERROR: Command errored out with exit status 1: command: /home/yry/miniconda3/envs/py27/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0LZNK4/sacred/setup.py'"'"'; file='"'"'/tmp/pip-install-0LZNK4/sacred/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 /tmp/pip-install-0LZNK4/sacred/pip-egg-info cwd: /tmp/pip-install-0LZNK4/sacred/ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-0LZNK4/sacred/setup.py", line 41, in install_requires=Path("requirements.txt").read_text().splitlines(), AttributeError: 'PosixPath' object has no attribute 'read_text'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

bilylee commented 4 years ago

It seems sacred is updated to support python > 3.5 only. You can try to install an older version like pip install sacred==0.7.5

yinruiying commented 4 years ago

Thank you, i solve it.