First, PyPI China mirror
As an upgraded version of Easy_install, PIP provides great convenience for Pyhton package management. One-line command to complete the installation of the required modules:
Pip Install Pandas
But the official image of the access speed is very slow, almost unusable. Therefore, it is very necessary to modify the mirror source to improve access speed,
Modify the mirror source in different operating systems, the location of the
1. Official PyPI sources and private pypi sources
We usually install the Python package using PIP, which will be conveniently installed by default from the Https://pypi.python.org/pypi. But some of the company's internal projects, inconvenient to go online, this time we will build their own intranet PyPI source
directly: go to PyPI to register an account, and then enter the Python setup.py register sdist on the command line uploadRunning Registerwe need to know who is, so please choose Either:1. Use your existing login, 2. Register as a new use R, 3. The server generate a new password for you (and email it to you), or 4. Quityour selection [Default 1]: 1General will be error, so I suggest in the setup.py of the s
Easy_install-i http://e.pypi.python.org/simple Fabric
Pip:
1
Pip-i http://e.pypi.python.org/simple Install Fabric
Method 2: Configure How to ModifyEasy_install:1. Open Pydistutils.cfg
1
VI ~/.pydistutils.cfg
2. Write the following:
12
[Easy_install]index_url = Http://e.pypi.python.org/simple
Pip:1. Open pip.conf
1
VI ~/.pip/pip.conf
2. Write the followi
lele_scripts is the command line program generatedO gui_scripts is a graphical interface program generatedThe format of o equals to the right is as follows: "[executable program name] = introduced package name. Sub-package name. Module name: entry function"Use setup. pyInstallAfter setup. py is written, the installation becomes very simple. Directly run the python setup. py install command to complete the installation.Debug/uninstallI have not found a method to uninstall using the python script
The table is not copied # default copy all, the above has been deleted the type package_matches = * # Delete the local have and the server does not have the package # default is True, will be deleted, here I adjust to false cleanup = false # to create the index text Piece create_indexes = true # display believe information verbose = True
Copy remote Mirror
Execute pypimirror-h to see Pypimirror's Help information
-I: Initializing mirroring
-U: Updat
1. Register account by Brower on https://pypi.python.org/pypi/2. Register your Moudle "Nester" to PyPI via CMDC:\users\eric\documents\python\nester>c:\users\eric\appdata\local\programs\python\python35-32\python.exe setup.py registerrunning registerrunning Checkwe need to know who is, so please choose Either:1. Use your existing L Ogin, 2. Register as a new user, 3. The
',
],
entry_points={
' console_scripts ': [ #如果你想要以Linux命令的形式使用
' bword = Bword.bword:main '
]
},
)
Go to PyPI to sign up for an account https://pypi.python.org/pypi?%3Aaction=register_form to create a hidden file named. Pypirc under your user's home directory, and fill in your account password:
[Server-
This article mainly introduces how to install third-party libraries of non-PyPI official website by pip in Python. The latest version of pip (version 1.5 or later) is out of security considerations, pip does not allow installation of non-PyPI URLs. This article provides two solutions. you can refer to the following three methods to install a non-built-in python module in python:
1. easy_install2. pip3.down
To specify mirrors manually
It is convenient to install a Third-party library with Easy_install and PIPThey are actually downloaded from the official source pypi.python.org/pypi of Python to the local and then unpack the installation.But for some reason, the official pypi is unstable, slow or even inaccessible.Like Ubuntu's apt and CentOS's yum have each mirror source,
Python uploads package to Pypi (simple code) and pythonpypi
If you don't talk much about it, You can directly post code to everyone.
After setup. py is compiled
$ Python setup. py register $ python setup. py sdist upload
The above is all about uploading a package to Pypi (simple code) in Python. This article is not well written. Please give me some advice and I wish you a happy New Year.
Articles you m
I learned the Python list and wrote a function to output the list. This time, I will continue to learn how to share the code we have compiled with the PyPI community, the print_lol function written in the above article is used as an example.
To share the print_lol function, we first need to encapsulate this function into a module. The so-called module is actually an object. the file at the end of py. Here we put the print_lol function in the previous
In the previous article, we have uploaded a wukong module to the PyPI website, which contains a print_lol function, which can be used to output the list, but this function has a problem, that is, the nested list output is not indented, as shown below:
>>> import wukong>>> movies = ["The Holy Grail",1975,"Terry Jones Terry Gilliam",91, ["Graham chapman",["Michael Palin","John cleese","Terry Gilliam","Eric Idle Terry Jones"]],
When a team develops a project, the required Python third-party packages are basically fixed. Every time we build a new environment, it is always caused by various Intranet and Internet resources, HTTPS issues take a lot of time to install the runtime environment. Therefore, you can build a local, small, and only contain the package source, or cache, which can save a lot of time to build the environment.
Pip2pi is used here. You can specify a download source, which is officially available in
This article mainly introduces the Python pip installed PyPI official website Third-party Library method, pip the latest version (more than 1.5 version), for security reasons, the PIP does not allow the installation of PyPI URLs, this article gives two solutions, the need for friends can refer to the
There are three different ways to install a non-Self Python module in Python:
1.easy_install
2.pip
3. Do
BackgroundRecent interest has written several Python libraries, also published on the PyPI, although no one to download, but they are used on other machines will be very convenient. Here I will show you how to publish your own Python library on PyPI.Prepare to register your accountIt is obvious to register an account with PyPI.Install the necessary library SetuptoolsThe environment in which PIP is installed in principle has setuptools, but does not af
Pypi-the Python Package IndexThe Python package, Index is a repository of software for the Python programming language. There is currently 53841 packages here.To the PyPI admins, please use the support or Bug reports links.Https://pypi.python.org/pypiAlready registered an account, after comparison, or Love Python, concise, can let you learn quickly, without having been delayed in the complicated grammar was
Domestic sourcehttp://pypi.douban.com/Watercresshttp://pypi.hustunique.com/Huazhong University of Technologyhttp://pypi.sdutlinux.org/Shandong University of Technologyhttp://pypi.mirrors.ustc.edu.cn/China University of Science and TechnologyHow to useManually Specify:Manually specify the source, you can follow the PIP and-I to specify the source, such as the source of the watercress to install Slinter (remember to add simple after the source address):$sudoPip3Install-I. http://Pypi.douban.com/si
Reference: http://www.cnblogs.com/yudar/p/4444097.htmlInstalling third-party libraries with Easy_install and Pip is convenientThey are actually downloaded from the official Python source Pypi.python.org/pypi to the local, then unpacked and installed.But for some reason, access to the official PyPI is unstable, slow or even inaccessible.As with Ubuntu's apt and CentOS's yum, there are various image sources l
The default PIP is to use the official Python source, but because the foreign official source is often the wall, resulting in unavailability, we can use the domestic Python image source, to solve the problem of Python installation not on the library.There are many sources available online, for example: Watercress: http://pypi.douban.com/simple/Tsinghua: Https://pypi.tuna.tsinghua.edu.cn/simpleNote that there is a/simple directory behind!!!1, temporary use, only use the specified source when inst
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.