Telegram Group & Telegram Channel
آیا می‌توانیم یک ماژول خاص پایتونی را با دستور pip مستقیم از یه پوشه یه مخزن github بگیریم و نصب کنیم؟

بله.

می‌تونیم توی فایل requirements.txt با این فرمت در یک خط اضافه کنیم
git+https://github.com/repo_name/repo.git#subdirectory=package_name
یا قاعدتا مستقیم تو کامند لاین یا ترمینالمون بزنیم:

pip install git+https://github.com/repo_name/repo.git#subdirectory=package_name

مثلا می‌تونید با یه خط کد از پروژه دیتاست coco برید و api مربوط به پایتونشو دانلود و نصب کنید:

pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI

داکیومنت‌های بیشتر:
https://pip.readthedocs.io/en/stable/reference/pip_install/#vcs-support



tg-me.com/PyLab/501
Create:
Last Update:

آیا می‌توانیم یک ماژول خاص پایتونی را با دستور pip مستقیم از یه پوشه یه مخزن github بگیریم و نصب کنیم؟

بله.

می‌تونیم توی فایل requirements.txt با این فرمت در یک خط اضافه کنیم
git+https://github.com/repo_name/repo.git#subdirectory=package_name
یا قاعدتا مستقیم تو کامند لاین یا ترمینالمون بزنیم:

pip install git+https://github.com/repo_name/repo.git#subdirectory=package_name

مثلا می‌تونید با یه خط کد از پروژه دیتاست coco برید و api مربوط به پایتونشو دانلود و نصب کنید:

pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI

داکیومنت‌های بیشتر:
https://pip.readthedocs.io/en/stable/reference/pip_install/#vcs-support

BY Python_Labs🐍


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/PyLab/501

View MORE
Open in Telegram


Python_Labs Telegram | DID YOU KNOW?

Date: |

At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?

Python_Labs from ye


Telegram Python_Labs🐍
FROM USA