setuptools

cryptography怎么解决

一个人想着一个人 提交于 2019-12-27 09:45:08
[root@host108 paramiko]# pip install cryptography-2.8.tar.gz DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Processing ./cryptography-2.8.tar.gz Installing build dependencies … error

Centos 5.x 升级 python2.7,安装setuptools、mysqldb 完整记录

 ̄綄美尐妖づ 提交于 2019-12-26 08:25:52
最近由于有个工作任务需要搭个虚拟机环境,但是环境是搭建在内网,无法直接联网,很多软件都不能直接yum安装, 安装过程实在十分不顺利,在此留个记录给有需要的朋友。 环境是 CentOS 5.7 x64 请选择合适的方式,下载python2.7.3安装包 http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 安装前当然需要编译器gcc yum install gcc yum install gcc 为了安装setuptools,要需要安装zlib yum install zlib zlib-dev yum install zlib zlib-dev 解压安装python2.7 tar jxvf Python-2.7.3.tar.bz2 cd Python-2.7.3 ./configure make && make instal tar jxvf Python-2.7.3.tar.bz2 cd Python-2.7.3 ./configure make && make instal 这里请注意: 上面这一步是正常步骤,但是在centos5.7环境中,当你执行setuptools时可能会有以下报错: Traceback (most recent call last): File " < string > ", line 1

python 自动安装工具 setuptools(easy_install) 的使用

末鹿安然 提交于 2019-12-25 22:31:34
1.下载安装 python 安装工具,下载地址:http://pypi.python.org/pypi/setuptools ,可以找到正确的版本进行下载。 2.解压缩后双击 ez_setup.py 进行安装,相关文件将自动安装至当前 python 版本的 scripts 目录下,如:C:\Python27\Scripts 。(或在 cmd 下执行 python ez_setup.py ,即可自动安装 setuptools )。3.安装 python 模块时,首先 cmd 进入 C:\Python27\Scripts 目录,执行安装命令,如安装 phonenumbers 模块时执行 " easy_install phonenumbers " 命令即可。 以下内容为转载,原文地址: http://bu-choreography.iteye.com/blog/1113059 安装easy_install完成之后,如何使用easy_install呢,去官网看看吧: --Downloading and Installing a Package 使用一: 根据你想要的安装包名来进行easy_install,工具会检索网页查询最新版本的包,自动下载、构建和安装 easy_install SQLObject 这办法很简洁并不适合中国国情,由于GFW对python.org的长期屏蔽

linux python 安装 pip出现 No module named 'setuptools'

放肆的年华 提交于 2019-12-25 20:09:11
1、下载pip wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb 2、解压 tar -zxvf pip-8.0.2.tar.gz cd pip-8.0.2 python3 setup.py build python3 setup.py install 若出现 No module named 'setuptools' 3、下载setuptools a、 wget https://bootstrap.pypa.io/ez_setup.py b、 python3 ez_setup.py 自动下载setuptools的版本 c、unzip setuptools-33.1.1.zip 4、重新执行 python3 setup.py build python3 setup.py install 来源: https://www.cnblogs.com/lijiale/p/8377380.html

“AttributeError: 'module' object has no attribute” with installed package

落花浮王杯 提交于 2019-12-25 06:49:56
问题 I have a project with these contents: proj ├── src │ ├── scriptA.py │ ├── scriptB.py │ └── __init__.py ├── LICENCE ├── README.md └── setup.py I am following this guide to package this project for PiPY. The setup.py file looks like: #!/usr/bin/python3 # coding=utf8 from setuptools import setup setup( name = "proj", version = "0.2", packages = ['src'], install_requires=[], entry_points={ 'console_scripts': [ 'scriptA=src:scriptA', 'scriptB=src:scriptB' ], }, # metadata for upload to PyPI author

windows 10 python 2.7和python3.6共存解决方法和pip安装

我的未来我决定 提交于 2019-12-25 06:49:10
一、首先去python官网将两个版本下载并安装; 然后进入windows的环境变量,检查下面4个变量: 1.C:\Python27 2.C:\Python27\Scripts 3.D:\software\python 4.D:\ software\python \Scripts 环境变量中缺少那个就增加那一个 进入CMD或者PowerShell 输入 py -2 (执行python2.x的版本) 输入py -3(执行python3.x的版本) 二、安装pip 首先下载pip安装包:https://pypi.python.org/pypi/pip#downloads 然后进入安装包 向那个版本安装就调用相应的python版本: 也可以不指定版本,直接使用python setup.py install 进行安装 例如向python2.x安装,就执行: py -2 setup.py install 这个时候有可能会报这样的错误:(from setuptools import setup, find_packages ImportError:No module named setuptools) 这说明缺少setuptools,这样解决: 方法一: 打开这个网页,将里面的内容放在一个xxx.py的文件里面:http://peak.telecommunity.com/dist/ez

Fetching remote git branch through Python setuptools

岁酱吖の 提交于 2019-12-25 04:02:19
问题 I've been sitting on this for a while now and here is the question. Do you know if I'm able to reference a git branch in setup.py in any way? Is '@' sign supposed to do that? Or is it used solely for tags and commits? Here is an example of what I was trying to do. # setup.py ... install_requires=['Django==1.5.11'] dependency_links=['git+https://github.com/django-nonrel/django.git@nonrel-1.5#egg=Django-1.5.11'] ... #python setup.py develop running develop running egg_info ... Processing

Fetching remote git branch through Python setuptools

心不动则不痛 提交于 2019-12-25 04:01:12
问题 I've been sitting on this for a while now and here is the question. Do you know if I'm able to reference a git branch in setup.py in any way? Is '@' sign supposed to do that? Or is it used solely for tags and commits? Here is an example of what I was trying to do. # setup.py ... install_requires=['Django==1.5.11'] dependency_links=['git+https://github.com/django-nonrel/django.git@nonrel-1.5#egg=Django-1.5.11'] ... #python setup.py develop running develop running egg_info ... Processing

How can I move global packages into a virtual environment after creating a virtual environment?

微笑、不失礼 提交于 2019-12-25 02:56:29
问题 I use python virtual environments regularly and generally execute the standard method of installing any necessary site packages after running installing the virtual environment. However, when I don't want to use all of the original environment's site-packages then in order to install a number of additional packages to the new environment I find the process tedious, especially when non pypi pacakges are required for my work. I haven't managed to find a means of moving a global site package

Setuptools: find SVN revision from a parent directory

我是研究僧i 提交于 2019-12-24 15:37:59
问题 In the Python package I'm putting together I'm using the following setup.cfg file: [egg_info] tag_build = dev tag_date = 1 tag_svn_revision = 1 However when I run python setup.py sdist the SVN revision appears as -r0 . This is likely because there is no .svn directory where I run the setup script; in fact my tree is main_dir/ .svn/ branches/ trunk/ setup.py setup.cfg How can I tell setuptools to go find the SVN revision number in a parent directory? I still want to keep using my package