问题描述

在安装tensorflow-gpu出现如下报错:

WARNING: The script markdown_py.exe is installed in 'C:\Users\SilentCat\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.

问题根源

'C:\Users\SilentCat\AppData\Roaming\Python\Python38\Scripts’路径没有写到path里,如果不处理很有可能导入不了包。

解决方案

打开电脑的属性->高级系统设置->环境变量->找到系统变量中的path->点击编辑->新建->写入如上的路径(这里我的路径是:‘C:\Users\SilentCat\AppData\Roaming\Python\Python38\Scripts’,请写入对应的路径)
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
这样问题就能够解决了。


希望这篇文章对大家有所帮助!

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐