Cara menggunakan ta-lib python

The website you want to visit is currently not available. This may be due to that the website is being developed, that maintenance is underway or that the website is closed due to some other reason.

Domain owner, please see your contact address [email] or contact for more information.

Webbplatsen går ej att nå för tillfället

Webbplatsen du vill besöka är för tillfället inte tillgänglig. Detta kan bero på att sidan är under utveckling, att underhåll görs eller att sidan av annan anledning är stängd.

Domänägare, se din kontaktadress [e-post] eller kontakta för mer information.

Nettsiden kan ikke nås for øyeblikket

Nettsiden du vil besøke er for øyeblikket ikke tilgjengelig. Dette kan komme av at siden er under utvikling, vedlikehold utføres eller at siden av en anledning er stengt.

Domeneier, se din kontaktadresse [e-post] eller kontakt for mer informasjon.

Email

distutils-sig@python.org

Sebagai proyek pengembangan open source yang populer, Python memiliki komunitas pendukung aktif dan pengguna yang juga membuat perangkat lunak mereka tersedia untuk pengembang Python lain untuk digunakan di bawah persyaratan lisensi sumber terbuka.

Hal ini memungkinkan pengguna Python untuk berbagi dan berkolaborasi secara efektif, mendapatkan manfaat dari solusi yang telah dibuat oleh orang lain untuk masalah umum [dan kadang-kadang bahkan langka!], Serta berpotensi memberikan kontribusi solusi mereka sendiri ke kumpulan umum.

Panduan ini mencakup bagian instalasi dari proses. Untuk panduan untuk membuat dan berbagi proyek Python Anda sendiri, lihat panduan distribusi.

Catatan

Untuk pengguna korporat dan institusi lainnya, sadarilah bahwa banyak organisasi memiliki kebijakan mereka sendiri tentang penggunaan dan kontribusi untuk perangkat lunak sumber terbuka. Harap pertimbangkan kebijakan tersebut saat menggunakan alat distribusi dan instalasi yang disediakan dengan Python.

Istilah utama¶

  • pip adalah program penginstal yang disukai. Mulai dari Python 3.4, disertakan secara bawaan pada installer biner Python.

  • Sebuah virtual environment adalah lingkungan Python semi-terisolasi yang memungkinkan paket diinstal untuk digunakan oleh aplikasi tertentu, dibandingkan diinstal sistem luas atau global.

  • venv is the standard tool for creating virtual environments, and has been part of Python since Python 3.3. Starting with Python 3.4, it defaults to installing pip into all created virtual environments.

  • virtualenv is a third party alternative [and predecessor] to venv. It allows virtual environments to be used on versions of Python prior to 3.4, which either don't provide venv at all, or aren't able to automatically install pip into created environments.

  • The Python Package Index is a public repository of open source licensed packages made available for use by other Python users.

  • the Python Packaging Authority is the group of developers and documentation authors responsible for the maintenance and evolution of the standard packaging tools and the associated metadata and file format standards. They maintain a variety of tools, documentation, and issue trackers on both GitHub and Bitbucket.

  • distutils is the original build and distribution system first added to the Python standard library in 1998. While direct use of distutils is being phased out, it still laid the foundation for the current packaging and distribution infrastructure, and it not only remains part of the standard library, but its name lives on in other ways [such as the name of the mailing list used to coordinate Python packaging standards development].

Berubah pada versi 3.5: Penggunaan venv sekarang disarankan untuk membuat lingkungan virtual.

Penggunaan dasar¶

The standard packaging tools are all designed to be used from the command line.

The following command will install the latest version of a module and its dependencies from the Python Package Index:

python -m pip install SomePackage

Catatan

For POSIX users [including macOS and Linux users], the examples in this guide assume the use of a virtual environment.

For Windows users, the examples in this guide assume that the option to adjust the system PATH environment variable was selected when installing Python.

It's also possible to specify an exact or minimum version directly on the command line. When using comparator operators such as >,

Bài mới nhất

Chủ Đề