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

请问python用的什么版本 #1

Open
Augenstern-yzh opened this issue Jan 13, 2020 · 11 comments
Open

请问python用的什么版本 #1

Augenstern-yzh opened this issue Jan 13, 2020 · 11 comments

Comments

@Augenstern-yzh
Copy link

3.6以上的python 无法解释protobuf包下某个py文件 下的某些syntax

@bubbliiiing
Copy link
Owner

我用的是python3.6 tensorflow1.13 keras2.1.5

@Augenstern-yzh
Copy link
Author

按你说的安装了版本,但是在运行train.py时,有很多"C:\Users\Lenovo\Anaconda3\lib\site-packages\google\protobuf\internal\decoder.py"里面的SyntaxError: invalid syntax,请问咋办呢?

@bubbliiiing
Copy link
Owner

这个是缩进问题,你需要调整缩进

@duanyuqi987
Copy link

这是我的,可以训练
conda create -n keras python = 3.6
pip install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install six -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install opencv-python -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install Pillow -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install scikit-image -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install h5py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install tensorflow-gpu==1.13.1 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install keras==2.1.5 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

@Stitches-97
Copy link

按照上面说的安装了版本,运行依然出错,找不到指定模块

@bubbliiiing
Copy link
Owner

是不是tensorflow-gpu环境没配置好

@Stitches-97
Copy link

Stitches-97 commented Apr 3, 2020 via email

@zhangmenghehehe
Copy link

是不是tensorflow-gpu环境没配置好

必须要电脑有显卡才行吗?

@zhangmenghehehe
Copy link

是不是tensorflow-gpu环境没配置好

必须要电脑有显卡才行吗?
CPU版的tensorflow可以运行吗?笔记本电脑没有NVIDIA的显卡

@bubbliiiing
Copy link
Owner

必须有英伟达的显卡

@bubbliiiing
Copy link
Owner

没有的话只能用cpu版本

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

5 participants