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

windows10 python由3.8降级到3.6 #108

Closed
liuxiaobei727 opened this issue Apr 23, 2022 · 12 comments
Closed

windows10 python由3.8降级到3.6 #108

liuxiaobei727 opened this issue Apr 23, 2022 · 12 comments
Labels
bug Something isn't working

Comments

@liuxiaobei727
Copy link

Describe the bug

A clear and concise description of what the bug is.

各种bug,我刚开始创建了一个虚拟环境deepke,然后pip install deepke ,但是各种报错,我想问一下是不是windows下不行吖?有没有windows下的详细安装教程提供一下

Environment (please complete the following information):

  • OS: [e.g. mac / window]
  • Python Version [e.g. 3.6]

windows python3.6

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

@liuxiaobei727 liuxiaobei727 added the bug Something isn't working label Apr 23, 2022
@tlk1997
Copy link
Collaborator

tlk1997 commented Apr 23, 2022

python3.6下没测试过,但你可以试试通过python setup.py install的方式安装

@liuxiaobei727
Copy link
Author

python3.8 windows的环境下是可以实现的吧?

@tlk1997
Copy link
Collaborator

tlk1997 commented Apr 23, 2022

是的

@liuxiaobei727
Copy link
Author

我在windows新建了一个python3.8的环境,然后pip install deepke,这是系统给我报的错, from urllib3.util.ssl_ import (
ImportError: cannot import name 'ssl' from 'urllib3.util.ssl_' (D:\python\Anaconda\envs\deepke\lib\site-packages\urllib3\util\ssl_.py)
求解决
image

@tlk1997
Copy link
Collaborator

tlk1997 commented Apr 23, 2022

你可以试试通过python setup.py install的方式安装

@liuxiaobei727
Copy link
Author

liuxiaobei727 commented Apr 23, 2022 via email

@tlk1997
Copy link
Collaborator

tlk1997 commented Apr 23, 2022

看一下readme,里面有详细介绍,直接在setup.py下运行命令

@GoooDte
Copy link
Collaborator

GoooDte commented Apr 23, 2022

windows下可以试试Anaconda提供的Prompt命令行窗口,在里面激活虚拟环境,进入setup.py的目录执行指令

@liuxiaobei727
Copy link
Author

windows下可以试试Anaconda提供的Prompt命令行窗口,在里面激活虚拟环境,进入 setup.py 的目录执行指令
在setup.py下试了一下还是不行,我还重新把环境删了,又重新建的python3.8的deepke的环境,然后执行的此命令,还是报错,
image
望解决,非常感谢

@GoooDte
Copy link
Collaborator

GoooDte commented Apr 23, 2022

windows下可以试试Anaconda提供的Prompt命令行窗口,在里面激活虚拟环境,进入 setup.py 的目录执行指令
在setup.py下试了一下还是不行,我还重新把环境删了,又重新建的python3.8的deepke的环境,然后执行的此命令,还是报错,
image
望解决,非常感谢

能否看一下您具体报错的代码和报错的完整信息

@liuxiaobei727
Copy link
Author

liuxiaobei727 commented Apr 23, 2022 via email

@GoooDte
Copy link
Collaborator

GoooDte commented Apr 23, 2022

Snipaste_2022-04-23_18-42-47
您好,我们亲自尝试了windows10下安装python3.8的deepke虚拟环境,并通过pip install deepke方式安装deepke包,运行您的报错代码import deepke.relation_extraction.standard.models as models后并没有出现错误,请您仔细检查一下自己的环境是否存在问题,如实在不行可选择重装python等方式。

@tlk1997 tlk1997 closed this as completed Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants