譯者:Jiong 鏈接: https://robots.thoughtbot.com/how-to-manage-your-python-projects-with-pipenv 在thoughtbot,我們用Ruby和Rails工作,但通常我們總是嘗試使用最合適的語言或者框架來解決問題。 我最近一 ...
譯者:Jiong 鏈接: https://robots.thoughtbot.com/how-to-manage-your-python-projects-with-pipenv 在thoughtbot,我們用Ruby和Rails工作,但通常我們總是嘗試使用最合適的語言或者框架來解決問題。 我最近一直在探索機器學習技術,所以Python使用地更多。 Ruby項目和Python項目處理之間的一個很大的區別就是管理依賴關係方式的不同。
!

- pip install pipenv
- cd my_project
- pipenv install
- pipenv install beautifulsoup4
- pipenv uninstall beautifulsoup4
- pipenv lock
- pipenv install
- pipenv install --dev nose2
- pipenv install
- pipenv install –dev
- pipenv run which python
- pipenv run python my_project.py
- alias prp="pipenv run python"