pip

Anaconda Navigator does not update packages

假如想象 提交于 2020-12-29 10:44:29
问题 I'm trying to update my environment through Anaconda Navigator. But it fails to update some packages. As you can see, the Apply button is inactive and there is a message saying "Package is already installed" but the package is still in Updatable page. Also, Spyder tells me to update nbconvert at each start. I tried: conda update conda conda update anaconda-navigator conda update navigator-updater conda update --all -y But still these packages are in Updatable list. This is the conda info

Installed Anaconda 4.3.1 (64-bit) which contains Python 3.6 but pip3 missing, cannot install tensorflow

亡梦爱人 提交于 2020-12-29 10:44:14
问题 I downloaded the latest stable Anaconda install off the Continuum website which turned out to be Anaconda 4.3.1 (64-bit) and comes with Python 3.6.0. I am in a Windows 10 environment. However pip3 is missing and I cannot install any Python 3.x packages via pip3. What am I doing wrong? 回答1: If you do not have another environment installed python 3+ will default to just pip I believe since pip3 is just an alias for pip. pip install --upgrade pip or You can do it with the associated Python

Installed Anaconda 4.3.1 (64-bit) which contains Python 3.6 but pip3 missing, cannot install tensorflow

醉酒当歌 提交于 2020-12-29 10:43:53
问题 I downloaded the latest stable Anaconda install off the Continuum website which turned out to be Anaconda 4.3.1 (64-bit) and comes with Python 3.6.0. I am in a Windows 10 environment. However pip3 is missing and I cannot install any Python 3.x packages via pip3. What am I doing wrong? 回答1: If you do not have another environment installed python 3+ will default to just pip I believe since pip3 is just an alias for pip. pip install --upgrade pip or You can do it with the associated Python

Scrapy爬虫入门

霸气de小男生 提交于 2020-12-29 07:54:09
1.安装Scrapy   打开Anaconda Prompt,执行:pip install Scrapy执行安装!   注意:要是安装过程中抛出:   error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools   (或者类似信息)的需要提前安装(根据自己的python版本安装,cp36是指匹配python3.6.x版本,amd64是指64位系统):      下载网站: http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted   完成之后执行安装:      安装成功后再执行:pip install Scrapy执行安装即可! 2.查看scrapy   输入:scrapy,表示安装成功!    3.查看命令   输入:help       4.创建Scrapy项目   执行命令:scrapy startproject bky      这表示创建成功!   执行cd bky, dir命令查看详情:    5.创建spider   查看spiders目录      创建一个新的spider

Scrapy笔记(1)- 入门篇

亡梦爱人 提交于 2020-12-29 07:41:16
Scrapy笔记01- 入门篇   Scrapy是一个为了爬取网站数据,提取结构性数据而编写的应用框架。可以应用在包括数据挖掘, 信息处理或存储历史数据等一系列的程序中。其最初是为了页面抓取(更确切来说,网络抓取)所设计的, 也可以应用在获取API所返回的数据(比如Web Services)或者通用的网络爬虫。   Scrapy也能帮你实现高阶的爬虫框架,比如爬取时的网站认证、内容的分析处理、重复抓取、分布式爬取等等很复杂的事。 安装scrapy   我的测试环境是centos6.5   升级python到最新版的2.7,下面的所有步骤都切换到root用户   由于scrapy目前只能运行在python2上,所以先更新centos上面的python到最新的 Python 2.7.11 , 具体方法请google下很多这样的教程。 先安装一些依赖软件 yum install python-devel yum install libffi-devel yum install openssl-devel 然后安装pyopenssl库 pip install pyopenssl 安装xlml yum install python- lxml yum install libxml2 - devel yum install libxslt -devel 安装service-identity

How to `pip install` a package that has Git dependencies?

旧城冷巷雨未停 提交于 2020-12-29 02:47:27
问题 I have a private library called some-library (actual names have been changed) with a setup file looking somewhat like this: setup( name='some-library', // Omitted some less important stuff here... install_requires=[ 'some-git-dependency', 'another-git-dependency', ], dependency_links=[ 'git+ssh://git@github.com/my-organization/some-git-dependency.git#egg=some-git-dependency', 'git+ssh://git@github.com/my-organization/another-git-dependency.git#egg=another-git-dependency', ], ) All of these

How to `pip install` a package that has Git dependencies?

…衆ロ難τιáo~ 提交于 2020-12-29 02:46:14
问题 I have a private library called some-library (actual names have been changed) with a setup file looking somewhat like this: setup( name='some-library', // Omitted some less important stuff here... install_requires=[ 'some-git-dependency', 'another-git-dependency', ], dependency_links=[ 'git+ssh://git@github.com/my-organization/some-git-dependency.git#egg=some-git-dependency', 'git+ssh://git@github.com/my-organization/another-git-dependency.git#egg=another-git-dependency', ], ) All of these

How to `pip install` a package that has Git dependencies?

一世执手 提交于 2020-12-29 02:45:34
问题 I have a private library called some-library (actual names have been changed) with a setup file looking somewhat like this: setup( name='some-library', // Omitted some less important stuff here... install_requires=[ 'some-git-dependency', 'another-git-dependency', ], dependency_links=[ 'git+ssh://git@github.com/my-organization/some-git-dependency.git#egg=some-git-dependency', 'git+ssh://git@github.com/my-organization/another-git-dependency.git#egg=another-git-dependency', ], ) All of these

python+opencv图像处理(一)

杀马特。学长 韩版系。学妹 提交于 2020-12-29 01:58:25
一、什么是opencv?     Open Source Computer Vision Library.OpenCV于1999年由Intel建立,如今由Willow Garage提供支持。OpenCV是一个基于BSD许可(开源)发行的跨平台计算机视觉库,可以运行在Linux、Windows、MacOS操作系统上。它轻量级而且高效——由一系列 C 函数和少量C++类构成,同时提供了Python、Ruby、MATLAB等语言的接口,实现了图像处理和计算机视觉方面的很多通用算法。最新版本是3.1 ,2016年1月29日发布。(引自 百度百科openCV )   简言之,通过openCV可实现计算机图像、视频的编辑。广泛应用于图像识别、运动跟踪、机器视觉等领域。 二、安装   直接使用pip安装 pip install numpy Matplotlib #由于opencv依赖numpy pip install opencv-python #或者使用国内镜像 pip install opencv-python -i https://pypi.douban.com/simple  安装完成之后再命令行解释器输入: import cv2  若没有提示no module错误,则表示安装成功 测试脚本: import cv2 #导入模块,opencv的python模块叫cv2 imgobj =

Pycharm配置AutoPEP8进行代码规范

我的未来我决定 提交于 2020-12-28 23:23:29
autopep8是一个可以将Python代码自动排版为PEP8风格第三方包,使用它可以轻松地排版出格式优美整齐的代码。 配置环境 windows 7 64位专业版(1809) pycharm professional 2020.3 python3.8.7 64位 操作步骤 使用pip下载autopep8: pip install autopep8 将autopep8添加到External Tools, 在Pycharm中点击 File--Settings---Tools--External Tools, 点击图中加号图标添加扩展工具: 上图中,需要填写Name, Program, Arguments, Working directory 以及Output Filters这几项。填写内容如下: Name:可以随意命名,如:AutoPEP8 Program:需要填写autopep8.exe的存放路径,如: D:\ProgramFiles\Python\Python38\Scripts\autopep8.exe Arguments: --in-place --aggressive --aggressive $FilePath$ Woking directory: $ProjectFileDir$ Output Filters输入: $FILE_PATH$\:$LINE$\:$COLUMN