Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install -r requirements.txt安装依赖报错 #24

Open
l1046j opened this issue Apr 27, 2021 · 3 comments
Open

pip install -r requirements.txt安装依赖报错 #24

l1046j opened this issue Apr 27, 2021 · 3 comments

Comments

@l1046j
Copy link

l1046j commented Apr 27, 2021

ERROR: Could not find a version that satisfies the requirement torch==1.3.0+cpu
ERROR: No matching distribution found for torch==1.3.0+cpu

pip 21.0.1
python 3.6.2

请问下如何解决呢?感谢

@836304831
Copy link
Collaborator

手动安装一下呢:
pip install torch==1.3.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/torch_stable.html

@l1046j
Copy link
Author

l1046j commented Apr 29, 2021

多谢,上面的问题ok了。python main.py 点击start test 又报这个错:start service test_node successprocess python agentai.py --mode=test --cfgpath=D:/GameAISDK/tools/SDKTool/project/TTKP/TTKP.prj start failed, service_name: test_node error: []phone_client_process failed 用命令行执行agentai.py 报错:
[2021-04-29 16:06:37,298][agentai.py:135][ERROR] : exception: No module named 'tensorflow.python.keras.applications.resnet50' msg: Traceback (most recent call last):
File "agentai.py", line 131, in Main
RunFrameWork(args.mode)
File "agentai.py", line 92, in RunFrameWork
if aiFramework.Init() is True:
File "../src/AgentAI/aiframework\AIFrameWork.py", line 59, in Init
if self._InitAIObject() is True:
File "../src/AgentAI/aiframework\AIFrameWork.py", line 73, in _InitAIObject
self.__agentEnv = self.__aiPlugin.CreateAgentEnvObj()
File "../src/AgentAI/aiframework\AIPlugin.py", line 235, in CreateAgentEnvObj
envPackage = import(modulename)
File "../src/AgentAI/agentenv\ImitationEnv.py", line 16, in
from aimodel.ImitationLearning.MainImitationLearning import MainImitationLearning
File "../src/AgentAI/aimodel\ImitationLearning\MainImitationLearning.py", line 16, in
from .Network import Network
File "../src/AgentAI/aimodel\ImitationLearning\Network.py", line 21, in
from tensorflow.python.keras.applications.resnet50 import conv_block, identity_block
ModuleNotFoundError: No module named 'tensorflow.python.keras.applications.resnet50'

@836304831
Copy link
Collaborator

836304831 commented May 11, 2021

安装好tensorflow之后,在终端输入python
然后执行:from tensorflow.python.keras.applications.resnet50 import conv_block, identity_block
确认tensorflow的版本,应该是版本不对。如果之前安装了就不会卸载在安装。可以先手动卸载然后重新安装。另外一个可能是,系统包含了多个python环境,tensorflow的安装环境没有对应上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants