pip

Installation fails for Fiona and Geopandas with GDAL on Python 3.6 on Microsoft Windows OS?

做~自己de王妃 提交于 2021-02-18 07:54:30
问题 I need to install Geopandas which depends on Fiona and GDAL with pip on Python 3.6. I have installed the GDAL library on Python using the wheel file downloaded from here. Processing c:\users\_chena\downloads\gdal-2.4.1-cp36-cp36m-win_amd64.whl Installing collected packages: GDAL Successfully installed GDAL-2.4.1 Then I tried to pip3 install geopandas . I encountered the following error: Collecting geopandas Downloading https://files.pythonhosted.org/packages/f0/5d/916b7268ef551fa9647c

Can I use pip to install a package from a private VSTS repository?

自古美人都是妖i 提交于 2021-02-18 06:36:49
问题 I would like to install a private package for my python app with pip. My package is stored in a git repo on Azure DevOps (Visual Studio Team Services). I see that git is supported by pip, but I cannot determine a workable format for the URL for Azure. I would like to avoid the Credential Manager. I have tried both git+ssh (with key) and git+https (with Personal Access Token). Is it possible to do this with Azure/VSTS? For context, I referenced these resources: https://www.revsys.com/tidbits

Python创建虚拟环境

拥有回忆 提交于 2021-02-18 06:03:44
Python创建虚拟环境 创建虚拟环境是为了让项目运行在一个独立的局部的Python环境中,使得不同环境的项目互不干扰。 一、用命令创建虚拟环境 1. 安装虚拟环境的第三方包 virtualenv pip install virtualenv 使用清华源安装: pip install virtualenv -i https://pypi.python.org/simple/ 2. 创建虚拟环境 cd 到存放虚拟环境光的地址 virtualenv ENV 在当前目录下创建名为ENV的虚拟环境(如果第三方包virtualenv安装在python3下面,此时创建的虚拟环境就是基于python3的) virtualenv -p /usr/local/bin/python2.7 ENV2 参数 -p 指定python版本创建虚拟环境 virtualenv --system-site-packages ENV 参数 --system-site-packages 指定创建虚拟环境时继承系统三方库 4. 激活/退出虚拟环境 cd ~/ENV 跳转到虚拟环境的文件夹 source bin/activate 激活虚拟环境 pip list 查看当前虚拟环境下所安装的第三方库 deactivate 退出虚拟环境 5. 删除虚拟环境 直接删除虚拟环境所在目录即可 二

Python pip segfault when installing package

丶灬走出姿态 提交于 2021-02-18 04:46:28
问题 Python 2.7.6 (default, Oct 21 2014, 13:39:51) [GCC 4.1.2 20080704 (Red Hat 4.1.2-55)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Been running into this problem forever on our legacy old server running Centos 5.4. Exception information: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/local/lib/python2.7/site-packages/pip-1

Python爬虫入门教程 妹子图网站爬取

喜你入骨 提交于 2021-02-17 14:42:51
妹子图网站----前言 从今天开始就要撸起袖子,直接写Python爬虫了,学习语言最好的办法就是有目的的进行,所以,接下来我将用10+篇的博客,写 爬图片 这一件事情。希望可以做好。 为了写好爬虫,我们需要准备一个火狐浏览器,还需要准备抓包工具,抓包工具,我使用的是CentOS自带的tcpdump,加上wireshark ,这两款软件的安装和使用,建议你还是学习一下,后面我们应该会用到。 妹子图网站---- 网络请求模块requests Python中的大量开源的模块使得编码变的特别简单,我们写爬虫第一个要了解的模块就是requests。 妹子图网站---- 安装requests 打开终端:使用命令 pip3 install requests 等待安装完毕即可使用 接下来在终端中键入如下命令 # mkdir demo # cd demo # touch down.py 上面的linux命令是 创建一个名称为 demo 的文件夹,之后创建一个 down.py 文件,你也可以使用GUI工具,像操作windows一样,右键创建各种文件。 为了提高在linux上的开发效率,我们需要安装一个 visual studio code 的开发工具 对于怎么安装vscode,参考官方的https://code.visualstudio.com... 有详细的说明。 对于centos则如下: sudo

pip not working in Python Installation in Windows 10

China☆狼群 提交于 2021-02-17 12:34:29
问题 I downloaded and installed Python 3.5 from https://www.python.org/downloads/ on my Windows 10 machine with IDLE I want to install other packages using pip using the following and various other options in the IDLE commandline editor. >> pip install packagename >> pip --install packagename >> pip --upgrade packagename >> pip upgrade packagename Where packagename I have tried various packages available from my installed Python modules Tried all the above options without any packagename a well.

Can't install PyQt5 On Raspberry pi

隐身守侯 提交于 2021-02-17 06:36:25
问题 I can't seem to install PyQt5 on raspberry pi using: sudo python3 -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org pyqt5 . I just have ran out of ideas and am asking here, as i've never seen this error before and i've install PyQt5 the same way on Ubuntu 18.04 with the exact same command and it worked. I have installed countless other packages with the above command and all have been successfull but PyQt5 just doesn't seem to install,

Python pip installation on Mac is not working

拜拜、爱过 提交于 2021-02-17 06:26:31
问题 I have a Macbook Air and want to install pip. I have the updated python version. I follow all the instructions but I cannot install any packages. I have been researching for more than 1 hour and looking at many articles and questions but I cannot figure it out. This is what is displayed on my Terminal when I try to install pip, and then install a package called beautifulsoup: arnau@MacBook-Air-de-Arnau ~ % python --version Python 2.7.16 arnau@MacBook-Air-de-Arnau ~ % curl https://bootstrap

pip install pyemd error?

旧城冷巷雨未停 提交于 2021-02-17 06:17:06
问题 I'm trying to install pyemd package in Python through pip and getting following error: C:\Users\dipanwita.neogy>pip install pyemd Collecting pyemd Using cached pyemd-0.4.3.tar.gz Requirement already satisfied: numpy<2.0.0,>=1.9.0 in c:\users\dipanwita.neogy\a naconda3\lib\site-packages (from pyemd) Building wheels for collected packages: pyemd Running setup.py bdist_wheel for pyemd ... error Complete output from command C:\Users\dipanwita.neogy\Anaconda3\python.exe -u -c "import setuptools,

Python 2.7 64-bit erroneously refer to 32-bit (x86) for include files

半城伤御伤魂 提交于 2021-02-17 05:44:26
问题 I'm doing some legacy work with Python 2.7.18 in 64 bit. When PIP calling the compiler (VC for Python), it erroneously refer to 32-bit (x86) sources looking for include files, for example "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" . For 32-bit everything works all OK; for 64-bit the pre-compiled wheel file is an alternative that I prefer not to use for now. I'm wondering did I miss any setting pointing python and its compiler to 64-bit instead of x86? Or, at lease I want