setuptools

Archlinux pip and setuptools not upgraded

匿名 (未验证) 提交于 2019-12-03 00:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Terminal command : python -V output: Python 3.5.2 I'm trying pip and setuptools update on pycharm but this error occurred : Error :python packaging tool 'pip' not found. Proposed solution: Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/usr/bin/python3.5'. Terminal command : which pip output: usr/bin/pip And I'm trying on terminal command : pacman -S(or -Syu,-Syy) python-pip or pacman -S(-Syu,-Syy) python-setuptools resolving dependencies

ameba-alios things 编译并下载rtl8710BN

匿名 (未验证) 提交于 2019-12-03 00:18:01
一、 下载/安装 Visual Studio Code https://code.visualstudio.com/ 安装 AliOS Studio 插件 安装 C/C++ 插件,搜索c/c++ 安装 alios-studio 插件,搜索alios-studio 二、请使用Windows7 64bit,使用Install_Win脚本 可以直接使用我们准备好的一键安装包: http://p28phe5s5.bkt.clouddn.com/setup_windows.zip 全部默认下一步就好 不要修改该路径,真的会出错,有洁癖,自行研究吧 如果出现如下问题: 更新下: (1)到C:\Python27\Scripts, 执行:pip install wheel (2)安装setuptools,下载setuptools源码setuptools-25.2.0.tar.gz 这是一个压缩文件,将其解压到桌面,并进入该文件夹,输入:python setup.py install 地址: https://pypi.python.org/pypi/setuptools 三、拉取最新版本,从master https://github.com/alibaba/AliOS-Things 四、 下载gcc 五、 六、编译 七、下载 运行成功: &附录 1、如果是新的板子(焊接了DAP芯片),烧录请注意:

Excluding a top-level directory from a setuptools package

自闭症网瘾萝莉.ら 提交于 2019-12-02 23:55:14
I'm trying to put a Python project into a tarball using setuptools. The problem is that setuptools doesn't appear to like the way that the source tree was originally setup (not by me, I must add). Everything that I actually want to distribute is in the top-level directory, rather than in a subdirectory like the setuptools docs talk about. The tree has a directory, tests , that I don't want to have in the released package. However, using exclude_package_data doesn't seem to actually do any excluding, and I'd like to work out what I've done wrong. My setup.py looks like this, in relevant part:

转载 Python 安装setuptools和pip工具操作方法(必看)

匿名 (未验证) 提交于 2019-12-02 22:54:36
转载 Python 安装setuptools和pip工具操作方法(必看) 本文章转载自 脚本之家 http://www.jb51.net 感谢! setuptools模块和pip模块是python进行第三方库扩展的极重要工具,例如我们在需要安装一些爬虫或者数据分析的包时就可以使用pip install命令来直接安装这些包了,因此pip工具一定要提前安装。 一、安装setuptools 在python交互界面执行如下命令,脚本我单独拿出来: 1 2 3 4 from urllib import urlopen data = urlopen( ' http://peak.telecommunity.com/dist/ez_setup.py ' ) open ( 'ez_setup.py' , 'wb' ).write(data.read()) exit() 执行完毕后可以发现在C:\Users\Administrator目录下出现了一个ez_setup.py的文件,cmd 执行python ez_setup.py,则安装setuptools完毕 二、安装pip工具 安装setuptool之后就可以安装pip啦。 安装setuptools完毕后在C:\Python27\Scripts就可以看到easy_install的模块了,可以使用cmd命令进入此目录,运行easy_install

windows创建python virtualenv 实现git(一)

匿名 (未验证) 提交于 2019-12-02 22:54:36
1.安装pthon,https://www.python.org/downloads/,找到对应版本进行下载(记得勾选add path项) 2.不出意外的话,安装完python就预装了setuptools,以及easy_install等,所以继续安装virtualenv: 3.安装git:点击http://msysgit.github.com/,下载傻瓜安装 4.此时已经可以gitclone各种程序代码 5.创建虚拟环境:venv\Scripts\activate 文章来源: windows创建python virtualenv 实现git(一)

python--“chardet”安装方式

匿名 (未验证) 提交于 2019-12-02 22:51:30
库说明: 环境: 下载: 安装方式: : chardet-3.0.4.tar.gz '; site-packages ’目录下,例如:‘D:\python2.7\Lib\site-packages’; 目录下,执行命令: setuptools ’; chardet-3.0.4.tar.gz '; 打开cmd命令窗口,进入解压的‘chardet’ 目录下,执行命令: 总结: setuptools ’,才可以安装成功,否则失败;最简单方式就是第一种操作方式。 文章来源: python--“chardet”安装方式

ubuntu安装python3、setuptools、ipython

匿名 (未验证) 提交于 2019-12-02 22:51:30
1. python3 sudo apt-get install python3 2. pip3 sudo apt install python3-venv python3-pip 3. 升级pip3 pip3 install --upgrade pip 1、下载ez_setup.py文件 下载地址:https://bootstrap.pypa.io/ez_setup.py 百度地址:http://pan.baidu.com/s/1jIgMO9w 2、安装ez_setup.py文件 python ez_setup.py sudo pip3 install ipython 文章来源: https://blog.csdn.net/u012206617/article/details/97249024

How to write setup.py to include a git repo as a dependency

时间秒杀一切 提交于 2019-12-02 21:35:01
I am trying to write setup.py for my package. My package needs to specify a dependency on another git repo. This is what I have so far: from setuptools import setup, find_packages setup( name='abc', packages=find_packages(), url='https://github.abc.com/abc/myabc', description='This is a description for abc', long_description=open('README.md').read(), install_requires=[ "requests==2.7.0", "SomePrivateLib>=0.1.0", ], dependency_links = [ "git+git://github.abc.com/abc/SomePrivateLib.git#egg=SomePrivateLib", ], include_package_data=True, ) When I run: pip install -e https://github.abc.com/abc

A simple Hello World setuptools package and installing it with pip

家住魔仙堡 提交于 2019-12-02 20:53:46
I'm having trouble figuring out how to install my package using setuptools, and I've tried reading the documentation on it and SO posts, but I can't get it to work properly. I'm trying to get a simple helloworld application to work. This is how far I got: helloworld.py: print("Hello, World!") README.txt: Hello, World! readme MANIFEST.in: recursive-include images *.gif setup.py: from setuptools import setup, find_packages setup( name='helloworld', version='0.1', license='BSD', author='gyeh', author_email='hello@world.com', url='http://www.hello.com', long_description="README.txt", packages=find

Easiest way to automatically download required modules in Python?

你离开我真会死。 提交于 2019-12-02 20:21:28
I would like to release a python module I wrote which depends on several packages. What's the easiest way to make it so these packages are programmatically downloaded just in case they are not available on the system that's being run? Most of these modules should be available by easy_install or pip or something like that. I simply want to avoid having the user install each module separately. thanks. gotgenes pip uses requirements files , which have a very straightforward format . For more Python packaging tooling recommendations, see the latest from the Python Packaging Authority (PyPA) . See