windows10 python由3.8降级到3.6
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.
python3.6下没测试过,但你可以试试通过python setup.py install的方式安装
python3.8 windows的环境下是可以实现的吧?
是的
我在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)
求解决

你可以试试通过python setup.py install的方式安装
windows环境下这个在哪安装?在哪输入命令吖?
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年4月23日(星期六) 下午5:40 收件人: @.>; 抄送: "电子信息工程 @.>; @.>; 主题: Re: [zjunlp/DeepKE] windows10 python由3.8降级到3.6 (Issue #108)
你可以试试通过python setup.py install的方式安装
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
看一下readme,里面有详细介绍,直接在setup.py下运行命令
windows下可以试试Anaconda提供的Prompt命令行窗口,在里面激活虚拟环境,进入setup.py的目录执行指令
windows下可以试试Anaconda提供的Prompt命令行窗口,在里面激活虚拟环境,进入 setup.py 的目录执行指令 在setup.py下试了一下还是不行,我还重新把环境删了,又重新建的python3.8的deepke的环境,然后执行的此命令,还是报错,
望解决,非常感谢
windows下可以试试Anaconda提供的Prompt命令行窗口,在里面激活虚拟环境,进入 setup.py 的目录执行指令 在setup.py下试了一下还是不行,我还重新把环境删了,又重新建的python3.8的deepke的环境,然后执行的此命令,还是报错,
望解决,非常感谢
能否看一下您具体报错的代码和报错的完整信息
D:\python\Anaconda\envs\deepke\python.exe D:/知识图谱/DeepKE-main/example/re/standard/run.py
wandb: WARNING W&B installed but not logged in. Run wandb login or set the WANDB_API_KEY env variable.
04/23/2022 18:19:44 - INFO - deepke.relation_extraction.multimodal.models.clip.file_utils - PyTorch version 1.10.0 available.
Traceback (most recent call last):
File "D:/知识图谱/DeepKE-main/example/re/standard/run.py", line 14, in <module>
import deepke.relation_extraction.standard.models as models
File "d:\知识图谱\deepke-main\src\deepke_init_.py", line 3, in <module>
from .name_entity_re import *
File "d:\知识图谱\deepke-main\src\deepke\name_entity_re_init_.py", line 1, in <module>
from .standard import *
File "d:\知识图谱\deepke-main\src\deepke\name_entity_re\standard_init_.py", line 1, in <module>
from .models import *
File "d:\知识图谱\deepke-main\src\deepke\name_entity_re\standard\models_init_.py", line 1, in <module>
from .InferBert import *
File "d:\知识图谱\deepke-main\src\deepke\name_entity_re\standard\models\InferBert.py", line 8, in <module>
from pytorch_transformers import (BertConfig, BertForTokenClassification,
File "D:\python\Anaconda\envs\deepke\lib\site-packages\pytorch_transformers-1.2.0-py3.8.egg\pytorch_transformers_init_.py", line 2, in <module>
from .tokenization_auto import AutoTokenizer
File "D:\python\Anaconda\envs\deepke\lib\site-packages\pytorch_transformers-1.2.0-py3.8.egg\pytorch_transformers\tokenization_auto.py", line 21, in <module>
from .tokenization_bert import BertTokenizer
File "D:\python\Anaconda\envs\deepke\lib\site-packages\pytorch_transformers-1.2.0-py3.8.egg\pytorch_transformers\tokenization_bert.py", line 25, in <module>
from .tokenization_utils import PreTrainedTokenizer
File "D:\python\Anaconda\envs\deepke\lib\site-packages\pytorch_transformers-1.2.0-py3.8.egg\pytorch_transformers\tokenization_utils.py", line 26, in <module>
from .file_utils import cached_path
File "D:\python\Anaconda\envs\deepke\lib\site-packages\pytorch_transformers-1.2.0-py3.8.egg\pytorch_transformers\file_utils.py", line 19, in <module>
import boto3
File "D:\python\Anaconda\envs\deepke\lib\site-packages\boto3-1.21.46-py3.8.egg\boto3_init_.py", line 17, in <module>
from boto3.session import Session
File "D:\python\Anaconda\envs\deepke\lib\site-packages\boto3-1.21.46-py3.8.egg\boto3\session.py", line 17, in <module>
import botocore.session
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\session.py", line 26, in <module>
import botocore.client
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\client.py", line 15, in <module>
from botocore import waiter, xform_name
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\waiter.py", line 18, in <module>
from botocore.docs.docstring import WaiterDocstring
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\docs_init_.py", line 15, in <module>
from botocore.docs.service import ServiceDocumenter
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\docs\service.py", line 14, in <module>
from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\docs\client.py", line 14, in <module>
from botocore.docs.example import ResponseExampleDocumenter
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\docs\example.py", line 13, in <module>
from botocore.docs.shape import ShapeDocumenter
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\docs\shape.py", line 19, in <module>
from botocore.utils import is_json_value_header
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\utils.py", line 34, in <module>
import botocore.httpsession
File "D:\python\Anaconda\envs\deepke\lib\site-packages\botocore-1.24.46-py3.8.egg\botocore\httpsession.py", line 21, in <module>
from urllib3.util.ssl_ import (
ImportError: cannot import name 'ssl' from 'urllib3.util.ssl_' (D:\python\Anaconda\envs\deepke\lib\site-packages\urllib3-1.26.9-py3.8.egg\urllib3\util\ssl_.py)
进程已结束,退出代码1
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年4月23日(星期六) 晚上6:19 收件人: @.>; 抄送: "电子信息工程 @.>; @.>; 主题: Re: [zjunlp/DeepKE] windows10 python由3.8降级到3.6 (Issue #108)
windows下可以试试Anaconda提供的Prompt命令行窗口,在里面激活虚拟环境,进入 setup.py 的目录执行指令 在setup.py下试了一下还是不行,我还重新把环境删了,又重新建的python3.8的deepke的环境,然后执行的此命令,还是报错,
望解决,非常感谢
能否看一下您具体报错的代码和报错的完整信息
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
您好,我们亲自尝试了windows10下安装python3.8的deepke虚拟环境,并通过pip install deepke方式安装deepke包,运行您的报错代码import deepke.relation_extraction.standard.models as models后并没有出现错误,请您仔细检查一下自己的环境是否存在问题,如实在不行可选择重装python等方式。
望解决,非常感谢