pip

安装scrapy出错Failed building wheel for Twisted

北战南征 提交于 2020-11-29 11:50:56
用 64 位 windows10 的 CMD 命令安装 pip install scrapy 出错: Running setup.py bdist_wheel for Twisted ... error Failed building wheel for Twisted Running setup.py clean for Twisted Failed to build Twisted Installing collected packages: pycparser, cffi, asn1crypto, cryptography, pyOpenSSL, Twisted, pyasn1, pyasn1-modules, service-identity, queuelib, scrapy Running setup.py install for Twisted ... error Exception: Traceback (most recent call last): File "e:\python\envs\py2scripy\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str return s.decode(sys.__stdout__.encoding)

Module installed with PIP in virtualenv not found

余生颓废 提交于 2020-11-29 10:33:15
问题 Getting a very strange error. I am making a virtual environment and initializing it with a pip requirements.txt file, but when I go to run code in the activated environment, the virtual environment interpreter claims to be missing some (and only some) of the modules: (venv) $ pip list certifi (2017.7.27.1) chardet (3.0.4) decorator (4.1.2) idna (2.5) ipython (6.1.0) ipython-genutils (0.2.0) jedi (0.10.2) numpy (1.13.1) olefile (0.44) pexpect (4.2.1) pickleshare (0.7.4) Pillow (4.2.1) pip (9.0

Module installed with PIP in virtualenv not found

为君一笑 提交于 2020-11-29 10:33:02
问题 Getting a very strange error. I am making a virtual environment and initializing it with a pip requirements.txt file, but when I go to run code in the activated environment, the virtual environment interpreter claims to be missing some (and only some) of the modules: (venv) $ pip list certifi (2017.7.27.1) chardet (3.0.4) decorator (4.1.2) idna (2.5) ipython (6.1.0) ipython-genutils (0.2.0) jedi (0.10.2) numpy (1.13.1) olefile (0.44) pexpect (4.2.1) pickleshare (0.7.4) Pillow (4.2.1) pip (9.0

Spacy Update msvc not found

别来无恙 提交于 2020-11-29 10:25:46
问题 I'trying to update spacy from version 2.0.18 to version 2.1.1. But every time I try to run the command pip install spacy-nightly or pip install -U spacy==2.1.1 I just get error: [WinError 2] System cannot find file specified msvc py_compiler msvc with a lot of unreadable output. Now I figured it has something to do with the C++ compiler spacy uses and I installed like every package I found at the Microsoft Visual Website but my problem didnt solve itself. I really would appreciate some help!

scrapyd使用教程

故事扮演 提交于 2020-11-29 04:49:33
1. 安装服务器: pip install scrapyd 启动: scrapyd 访问:127.0.0.1:6800 2. 安装客户端 pip install scrapyd-client 3. 进入爬虫项目根目录:找到 scrapy.cfg 文件 修改如下 [settings] default = blog.settings [deploy:zwb] url = http://localhost:6800/ project = blog 4. 发布项目 scrapyd-deploy target -p prject 这里target 为你的服务器命令,prject是你项目的名字,发布项目之前我们的scrapyd.cfg必须修改,上面我们已经修改过了, 因此我的命令是:scrapyd-deploy zwb -p blog scrapyd-deploy < target> -p < project> --version < version> 4.2 启动爬虫 curl http://localhost:6800/schedule.json -d project=blog -d spider=demo 4.3 停止爬虫 curl http://localhost:6800/cancel.json -d project=blog -d job=demo blog:你爬虫项目的名字

Tensorflow - ImportError: Could not find 'msvcp140.dll'

社会主义新天地 提交于 2020-11-29 03:16:26
问题 I am just a beginner to a tensorflow and trying to install TensorFlow with CPU support only. Initially, I downloaded and installed Python 3.5.2 version from https://www.python.org/downloads/release/python-352/ After successful installation, I ran the command pip3 install --upgrade tensorflow which installed tensorflow-1.8.0. To test installation i just ran following commands: > python > import tensorflow as tf But this gave me an error : ImportError: Could not find 'msvcp140.dll'. TensorFlow

Tensorflow - ImportError: Could not find 'msvcp140.dll'

谁说我不能喝 提交于 2020-11-29 03:14:22
问题 I am just a beginner to a tensorflow and trying to install TensorFlow with CPU support only. Initially, I downloaded and installed Python 3.5.2 version from https://www.python.org/downloads/release/python-352/ After successful installation, I ran the command pip3 install --upgrade tensorflow which installed tensorflow-1.8.0. To test installation i just ran following commands: > python > import tensorflow as tf But this gave me an error : ImportError: Could not find 'msvcp140.dll'. TensorFlow

Tensorflow - ImportError: Could not find 'msvcp140.dll'

让人想犯罪 __ 提交于 2020-11-29 03:14:20
问题 I am just a beginner to a tensorflow and trying to install TensorFlow with CPU support only. Initially, I downloaded and installed Python 3.5.2 version from https://www.python.org/downloads/release/python-352/ After successful installation, I ran the command pip3 install --upgrade tensorflow which installed tensorflow-1.8.0. To test installation i just ran following commands: > python > import tensorflow as tf But this gave me an error : ImportError: Could not find 'msvcp140.dll'. TensorFlow

Harmony OS 开发避坑指南——源码下载和编译

人盡茶涼 提交于 2020-11-28 09:54:55
大咖揭秘Java人都栽在了哪?点击免费领取《大厂面试清单》,攻克面试难关~>>> 本文介绍了如何下载鸿蒙系统源码,如何一次性配置可以编译三个目标平台(Hi3516,Hi3518和Hi3861)的编译环境,以及如何将源码编译为三个目标平台的二进制文件。 坑点总结: 下载源码基本上没有太多坑,可以很顺利的进行 编译源码主要的一个大坑是,默认版本的scons依赖python 3.7+,鸿蒙基础编译代码依赖python3,需要安装python 3.7+,并和当前系统上的python2.7/python3.6和谐共处!解决方法一般有两种: 使用virtualenv管理多个版本的python环境,这种方式好处是只在当前shell会话生效不影响系统环境、其他用户和其他shell会话,缺点是使用前需要source active脚本稍微有点麻烦; 使用update-alternatives管理系统的多个版本python命令,这种方式需要切换系统的链接/usr/bin/python和/usr/bin/python3,可能会影响依赖python的应用程序(例如apt)的正常使用、其他用户和其他shell会话; 准备环境 本节介绍下载、编译和烧写鸿蒙系统所需的软硬件环境。 硬件环境 其中,Linux主机用于源码下载和编译,Windows主机用于烧写程序到单板以及源码编辑。 软件环境 硬件 说明

使用Python+selenium实现第一个自动化测试脚本

无人久伴 提交于 2020-11-28 07:20:18
原blog 一,安装Python. python官方下载地址: https://www.python.org/downloads/ 安装后点击开始菜单,在菜单最上面能找到IDLE. IDLE是python自带的shell, 点击打开, 即可开始编写python脚本了. 二,安装selenium 上面python已安装完成,接下来安装selenium. 安装selenium之前需要安装必要工具. setuptools 安装后,(比如zip包形式安装),进入解压的目录,在命令行执行如下命令即可安装. python setup.py install 再然后安装pip https://pypi.python.org/pypi/pip 同样,安装tar或解压包,进入目录cmd执行python setup.py install即可安装 安装selenium 上面2个工具安装好后,安装selenium只需在命令行进入python安装路径Script目录下,执行 pip install -U selenium 即可自动安装. 完成安装后在IDLE输入 from selenium import webdriver 如果没报错即代表安装成功. 三,注意事项 selenium3.0 需要独立安装 FireFox驱动 .解压后放在python安装路径下即可.