- 博客(15)
- 资源 (2)
- 收藏
- 关注
转载 centos 解决python3.7 安装时No module named _ssl
转载自:https://www.jianshu.com/p/3ec24f563b81
2018-12-30 17:14:56 2707
原创 关于虚拟机下_ssl不存在
Centos环境中:除了安装openssl,还要安装动态库和相关头文件openssl-develyum -y install opensslyum -y install openssl-develubuntu环境中:sudo apt-get install libssl-devsudo apt-get install openssl...
2018-12-30 17:13:27 1556
转载 ubuntu关于W: GPG error: http://archive.canonical.com intrepid Release错误
方法1:Try to run the following comamnds from terminal$ sudo -iapt-get cleancd /var/lib/aptmv lists lists.oldmkdir -p lists/partialapt-get cleanapt-get update方法2:Try to run the following ...
2018-12-30 16:50:24 1505
原创 unbuntu pkg_resources.DistributionNotFound: The 'pip==1.5.4' ,排查发现pip不在环境变量中
最开始遇到的问题是:使用pip安装scrapy报错:unbuntu pkg_resources.DistributionNotFound: The 'pip==1.5.4' distribution was not found and is required by the application因此参考博客https://blog.csdn.net/allyli0022/article...
2018-12-29 18:53:58 2445
原创 ubuntu安装完twisted之后,安装scrapy仍然报错:ModuleNotFoundError: No module named 'twisted.persisted'
报错如图:原因:twisted版本比较低,而python的版本比较高1.查看pip版本2.查看twisted版本pythonimport twistedtwisted.version 因此更新twisted版本 wget https://pypi.python.org/packages/source/T/Twisted/Twisted-17.1.0....
2018-12-29 18:50:00 1165
原创 pip install scrapy时报错:Could not find a version that satisfies the requirement Twisted>=13.1.0
pip install scrapy时报错:Could not find a version that satisfies the requirement Twisted>=13.1.0 (from Scrapy) (from versions: ) No matching distribution found for Twisted>=13.1.0 (from Scrapy) ...
2018-12-29 18:00:35 927
原创 ubuntu安装scrapy报错
pip install scrapy时报错:Could not find a version that satisfies the requirement Twisted>=13.1.0 (from Scrapy) (from versions: ) No matching distribution found for Twisted>=13.1.0 (from Scrapy) ...
2018-12-29 17:58:05 344
原创 ubuntu安装python3.7,并更新python默认指向为python3.7
ubuntu默认带着的python版本不是最新版,因此需要手动安装最新版。查看python的指向。ls -l /usr/bin | grep python可以看到,此时python指向的是python3.4。第一部分:安装python3.71.直接使用apt-get安装python3.7失败:apt-get install python3.72.改为手动安装...
2018-12-24 17:57:44 209504 66
原创 ubuntu安装python3.7过程中make test命令出错ModuleNotFoundError: No module named ‘_ctypes’
问题1:ModuleNotFoundError: No module named ‘_ctypes’ 解决:1.sudo apt-get update关于sudo apt-get update 出现fetch ppa错误,请移步我的另一篇博客https://blog.csdn.net/u014775723/article/details/852240262.sudo ap...
2018-12-24 17:55:02 23846 14
原创 sudo apt-get upgrade相关错误解决
错误1:dpkg: error while cleaning up:subprocess installed post-installation script returned error exit status 1解决:cd /var/lib/dpkgsudo mv info info.baksudo mkdir info sudo apt-get upgrade...
2018-12-23 17:10:33 9269 1
原创 关于sudo apt-get update 出现fetch ppa错误
关于sudo apt-get update 出现以下错误W: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.7/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found解决:将对应的ppa删除即可步骤1:切换到对应的ppa目录 cd /e...
2018-12-23 16:54:08 6273
原创 Forbidden by robots.txt错误
运行scrapy spider时,出现Forbidden by robots.txt错误原因:在settings.py文件里有个ROBOTSTXT_OBEY参数,默认为True。False为拒绝遵守robot协议,True为遵守robot协议解决:将settings.py文件里的ROBOTSTXT_OBEY参数,设为False.。即ROBOTSTXT_OBEY = False...
2018-12-19 18:47:47 894
原创 使用datetime.datetime.now()报错
使用datetime.datetime.now()报错原因是:from datetime import datetime此时命名空间是已经是datetime.datetime因此应该直接使用datetime.now()或者import datetime
2018-12-19 18:36:38 5992 1
原创 python 使用Join时出现错误
使用Join时出现错误TypeError: sequence item 1: expected str instance, int found原因是:应该将list转为string即使用str()result3 = join(str(['',1,3,4]))
2018-12-19 17:44:12 3086
原创 virtualBox ubuntu 重置登陆密码
1.开机时,按Esc键,进入root模式,选择第二个Advanced options for Ubuntu,按enter2.选择有recovery mode的选项,按e进入3.进入后找到ro recovery nomodeset,更改为rw single init=/bin/bash,按ctrl进入单用户模式4.命令行输入passwd修改密码...
2018-12-19 12:57:44 3680
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人