This course covered the ins-and-outs of pipenv
, covering how to:
- Create virtual environments
- Install packages
- Uninstall packages
- Validate your dependencies
For more information on concepts covered in this course, you can check out:
- How to Publish an Open-Source Python Package to PyPI
- What Are Python Wheels and Why Should You Care?
- The Real Python Podcast: Episode 83: Ready to Publish Your Python Packages?
- Pipenv: Python Dev Workflow for Humans (documentation)
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
Santosh on Jan. 18, 2022
Great course as always!
Couple of questions:
In the ‘pipenv shell’ environment, when I use Vim/Neovim as my editor, none of the plugins or standard configurations light up. Any thoughts or best practices of ways to enable this as a default?
I wrote a simple script that just took a small dictionary and pushed it into a pandas dataframe. Literally, this was my code:import pandas as pd; sample_list = {‘name’:’Moi’,’age’:20}; df=pd.DataFrame(sample_list). I wanted to test this through a Makefile and Github Actions. I had installed ‘pandas’ and the script ran successfully when I ran it in the pipenv environment. However, when I tried to run this through a Makefile as part of Github Actions, it threw this error: “numpy: No module named ‘numpy’” though numpy was part of my dependencies, and my code (as above) did not reference anything numpy-related. I did a “pipenv install numpy” to explicitly add this package. It worked. But it was disappointing since I assumed that numpy was already installed as a dependency. Any thoughts on why that is?…
(Makefile contents below)