attributeError:模块' os'没有属性' pathike'
我想在Python 3.5中运行OS。不幸的是,这在Python 3.5中不可用。是否有一个周转,可以在Python 3.5中运行此命令,而无需升级Python版本。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
欢迎来到依赖地狱。由于Python 3.5被折旧,许多新版本的模块都使用3.6语法,这会导致此类问题。我只是解决了一个类似的问题。检查堆栈trance并查找哪个模块丢弃该错误,然后删除该版本的版本,并找到兼容的旧版本。
在我的情况下,更新了Python模块,并且
ceeldifi
模块正在破坏PIP3,而您看到的错误相同。我在。然后在此之后删除模块,我能够使用
python3 -m pip
egWelcome to dependency hell. Since python 3.5 is depreciated many new version of modules are using 3.6 syntax which causes problems like this. I just resolved a similar issue. Check the stack trance and find which module is throwing that error then delete that version of it and find an older version that's compatible.
In my case python modules were updated and the
certifi
module was breaking pip3 with the same error you're seeing. I found a compatible version of it on https://pypi.org/project/certifi. Then deleted the module like thisAfter this I was able to use
python3 -m pip
e.g.