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

Win10 20H2 + Python3.9.5无法安装 #5

Closed
voomy opened this issue Jul 27, 2021 · 12 comments
Closed

Win10 20H2 + Python3.9.5无法安装 #5

voomy opened this issue Jul 27, 2021 · 12 comments

Comments

@voomy
Copy link

voomy commented Jul 27, 2021

pip install ddddocr
Collecting ddddocr
Using cached ddddocr-1.0.6-py3-none-any.whl (6.9 MB)
Using cached ddddocr-1.0.5-py3-none-any.whl (3.3 MB)
Collecting torchvision
Using cached torchvision-0.2.2.post3-py2.py3-none-any.whl (64 kB)
Collecting ddddocr
Using cached ddddocr-1.0.4.tar.gz (3.3 MB)
Requirement already satisfied: numpy in e:\program files\python\python39-32\lib\site-packages (from ddddocr) (1.20.3)
ERROR: Cannot install ddddocr==1.0.4, ddddocr==1.0.5 and ddddocr==1.0.6 because these package versions have conflicting dependencies.

The conflict is caused by:
ddddocr 1.0.6 depends on onnxruntime
ddddocr 1.0.5 depends on onnxruntime
ddddocr 1.0.4 depends on torchvision==0.9.1

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

@voomy
Copy link
Author

voomy commented Jul 27, 2021

尝试手工pip安装torchvision、onnxruntime均提示出错 :(
麻烦大大帮忙看看。谢谢!

@sml2h3
Copy link
Owner

sml2h3 commented Jul 27, 2021

尝试手工pip安装torchvision、onnxruntime均提示出错 :(
麻烦大大帮忙看看。谢谢!

卸载全部的torchvision、onnxruntime,然后直接
pip install ddddocr -i https://pypi.douban.com/simple

@voomy
Copy link
Author

voomy commented Jul 28, 2021

大大,再请教一下。
我用 pip list 并未找到torchvision、onnxruntime。 请问我如何卸载他们呢?

另外,我尝试了直接 pip install ddddocr -i https://pypi.douban.com/simple,还是提示出错。出错信息与第一个帖子一样。

谢谢!

@sml2h3
Copy link
Owner

sml2h3 commented Jul 29, 2021

大大,再请教一下。
我用 pip list 并未找到torchvision、onnxruntime。 请问我如何卸载他们呢?

另外,我尝试了直接 pip install ddddocr -i https://pypi.douban.com/simple,还是提示出错。出错信息与第一个帖子一样。

谢谢!

现在pip安装的应该已经不需要torchvision了,你这个应该是onnxruntime依赖有冲突
依次执行
pip uninstall onnxruntime
pip uninstall torchvision
pip uninstall torch
pip install ddddocr==1.0.8 -i https://pypi.douban.com/simple

1 similar comment
@sml2h3
Copy link
Owner

sml2h3 commented Jul 29, 2021

大大,再请教一下。
我用 pip list 并未找到torchvision、onnxruntime。 请问我如何卸载他们呢?

另外,我尝试了直接 pip install ddddocr -i https://pypi.douban.com/simple,还是提示出错。出错信息与第一个帖子一样。

谢谢!

现在pip安装的应该已经不需要torchvision了,你这个应该是onnxruntime依赖有冲突
依次执行
pip uninstall onnxruntime
pip uninstall torchvision
pip uninstall torch
pip install ddddocr==1.0.8 -i https://pypi.douban.com/simple

@voomy
Copy link
Author

voomy commented Aug 3, 2021

图片
按顺序操作了,还是提示出错(详见上图) :(

@SongJinCheng1
Copy link

问题同上 win10+python 3.9.6

@SongJinCheng1
Copy link

图片
按顺序操作了,还是提示出错(详见上图) :(

请问您解决这个问题了吗

@sml2h3
Copy link
Owner

sml2h3 commented Aug 8, 2021

图片
按顺序操作了,还是提示出错(详见上图) :(

请问您解决这个问题了吗

可能这又是因为python版本过高了,可以尝试用python3.8

@sml2h3
Copy link
Owner

sml2h3 commented Aug 26, 2021

最近发现有一些人都遇到了这个问题,后突然发现,出现问题的都是错误的使用的32位的python版本,而实际工作、开发中很少会用到32位Python,建议卸载当前python并安装64位Python

@sml2h3 sml2h3 closed this as completed Aug 26, 2021
@parishwa
Copy link

您好 :
請問,我在raspberry pi 無法安裝,也是出現上面所述的錯誤訊息,該怎麼解決呢? 謝謝 !

@DavidGtb
Copy link

现实中确实使用的32位的debian,就与此无缘了吗?

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