![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 50
gusijin
这个作者很懒,什么都没留下…
展开
-
解决pip报错from pip._internal.cli.main import main ImportError: No module named typing
问题Traceback (most recent call last):File “/usr/bin/pip”, line 7, in from pip._internal.cli.main import mainFile “/usr/lib/python2.7/site-packages/pip/init.py”, line 1, in from typing import List, OptionalImportError: No module named typing解决python原创 2021-10-08 17:05:03 · 3795 阅读 · 0 评论 -
clion、IDEA、phpstorm、pycharm、webstorm怎么切换白色和黑色的背景UI主题
clion、IDEA、phpstorm、pycharm、webstorm怎么切换白色和黑色的背景UI主题调出颜色主题,快捷键为ctrl+`选择自己想要的颜色风格Darcula风格Classic Light风格调出颜色主题,快捷键为ctrl+`选择自己想要的颜色风格Darcula风格Classic Light风格...原创 2021-05-22 21:59:07 · 5153 阅读 · 0 评论 -
解决Could not fetch URL https://pypi.org/simple/pip/
问题Looking in indexes: https://mirrors.aliyun.com/pypi/simpleWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1106: The handshake ope原创 2021-04-16 14:11:36 · 1916 阅读 · 0 评论 -
anaconda和miniconda各版本下载地址
anaconda和miniconda各版本下载地址anaconda各版本下载地址https://repo.continuum.io/archive/miniconda各版本下载地址https://repo.continuum.io/miniconda/原创 2020-09-23 11:35:35 · 4397 阅读 · 0 评论 -
python查看对应模块版本号pip list
python查看模块版本号pip listcmd->运行pip list | find "numpy"原创 2020-09-23 10:33:08 · 2686 阅读 · 0 评论 -
from urllib.request import urlopen报错
from urllib.request import urlopen报错环境解决方法环境Python 2.7.18windows 10解决方法from urllib.request import urlopen报错,2.7版本的request 需要引入urllib2from urllib2 import urlopen安装urlopen模块包pip install urlopen...原创 2020-09-22 15:49:50 · 3062 阅读 · 0 评论 -
解决UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0xe6 in position 0: ordinal not in range(128)
@[TOC](解决UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe6 in position 0: ordinal not in range(128))环境python2.7.18windows 10解决方法python2.x的默认编码是ascii,而代码中有utf-8的字符导致,解决方法是设置utf-8import sysreload(sys)sys.setdefaultencoding('utf8')...原创 2020-09-22 15:45:03 · 1761 阅读 · 0 评论 -
windows环境python3和python2同时安装,解决pip共存问题
windows环境python3和python2同时安装,解决pip共存问题安装python2.7兼容安装python3.7pip共存安装python2.7下载python环境打开 WEB 浏览器访问https://www.python.org/downloads/安装并设置环境变量设置环境变量电脑–属性–高级系统设置–高级–环境变量–系统变量–Path–编辑添加python安装路径即可D:\python\Python2.7D:\python\Python2.7\Scripts运行pyt原创 2020-09-17 16:24:35 · 400 阅读 · 1 评论 -
python2或python3通过代码获取当前版本号方法
python2或python3获取当前版本号方法#!/usr/bin/pythonimport platformprint(platform.python_version())python2输出:2.7.18python3输出:3.7.9原创 2020-09-17 11:54:23 · 704 阅读 · 0 评论 -
windows解决error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
windows解决error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27环境报错解决方案环境windows 10 64位python2.7.18报错pip install support安装support报错Complete output (9 lines):running installrunning buildrunning build_pycreating buildcr原创 2020-09-11 16:14:34 · 4317 阅读 · 5 评论 -
PyCharm输出中文乱码的解决方法
PyCharm输出中文乱码的解决方法Pycharm 设置步骤脚本开关加上 # -*- coding: UTF-8 -*-Pycharm 设置步骤进入 file -> Settings,在输入框搜索 encoding。找到 Editor -> File encodings,将 IDE Encoding 和 Project Encoding 设置为utf-8脚本开关加上 # -- coding: UTF-8 --...原创 2020-09-11 14:39:50 · 7122 阅读 · 3 评论 -
python生成windows可执行的exe文件
python生成exe文件环境安装pyinstaller查看pyinstaller版本生成exe文件环境环境: win10+python2.7.18安装pyinstallerpyinstaller版本有 (from versions: 2.0, 2.1, 3.0, 3.1, 3.1.1, 3.2, 3.2.1, 3.3, 3.3.1, 3.4, 3.5, 3.6, 4.0)选择python对应的pyinstaller版本pip install pyinstaller==3.3.1Collect原创 2020-09-11 10:09:53 · 844 阅读 · 0 评论 -
解决pip安装超时问题,pip切换国内源,加快速度
解决pip安装超时下载包切换源临时切换源永久切换源下载包切换源pip install pyinstaller -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com临时切换源通过阿里云镜像安装pip install -i http://mirrors.aliyun.com/pypi/simple/ pip永久切换源windows:在user目录中创建一个pip目录,如:C:\Users\xx\pip原创 2020-09-10 16:41:11 · 149 阅读 · 0 评论 -
ImportError: No module named dis3解决方案
ImportError: No module named dis3解决方案环境报错解决方法环境环境: win10+python2.7.18报错pyinstallerTraceback (most recent call last): File "d:\pythonsoft\python2.7.18\lib\runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "d:原创 2020-09-10 15:45:48 · 929 阅读 · 2 评论 -
python引入包下载地址
这里写目录标题python引入包下载地址https://www.lfd.uci.edu/~gohlke/pythonlibs/原创 2020-09-10 14:55:38 · 232 阅读 · 0 评论 -
import win32con报错解决办法
import win32con报错解决办法安装pypiwin32包pip install pypiwin32原创 2020-09-10 14:21:53 · 2572 阅读 · 0 评论 -
cmd报错,解决“‘pip‘ 不是内部或外部命令,也不是可运行的程序或批处理文件“的问题
解决"'pip' 不是内部或外部命令,也不是可运行的程序或批处理文件"的问题设置环境变量即可使用pip设置环境变量在系统变量path增加D:\pythonSoft\python2.7.18\Scripts的路径即可使用pippip -Vpip 19.2.3 from d:\pythonsoft\python2.7.18\lib\site-packages\pip (python 2.7)...原创 2020-09-10 14:10:31 · 3524 阅读 · 0 评论 -
ERROR: Could not find a version that satisfies the requirement pyHook (from versions: none)
ERROR: Could not find a version that satisfies the requirement pyHook 问题描述解决方案下载pyhookpip安装pyhook问题描述pycharm安装pyHook报错ERROR: Could not find a version that satisfies the requirement pyHook (from versions: none)DEPRECATION: Python 2.7 reached the end of原创 2020-09-10 14:03:59 · 6103 阅读 · 1 评论 -
解决pycharm报错:error:please select a valid Python interpreter
解决pycharm报错:error:please select a valid Python interpreter第一步:打开设置File -> Settings第二步:选择Project ->Python Interpreter第三步:选择界面右边上的配置按钮,右击选择add …第四步:选择system interpreter,然后选择安装的Python路径即可...原创 2020-09-10 13:46:15 · 5672 阅读 · 1 评论 -
pip升级python -m pip install --upgrade pip
pip升级运行 -> cmdpython -m pip install --upgrade pip安装成功显示:DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January原创 2020-09-10 11:18:14 · 1080 阅读 · 0 评论 -
解决超时问题pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool
@[TOC](pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443))问题:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.解决方法cm原创 2020-09-04 17:31:31 · 2211 阅读 · 0 评论