How to call easy_install argparse after installation
Hongjiang Zhang
honzhan at microsoft.com
Fri Apr 28 09:06:20 UTC 2017
Hi all,
I'm trying to create a new ports app, which is a python application and depends on argparse. For python 2.7, argparse is builtin.
Unfortunately, when the app is starting, it complains:
pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by XXX
According to the argparse document, the fix is one of the followings. My question is how can I invoke "easy_install argparse" in my Makefile? By the way, argparse has already been removed from ports.
1. python setup.py install
2. easy_install argparse
3. pip install argparse
4. putting argparse.py in some directory listed in sys.path should also work
Thanks
Hongjiang Zhang
More information about the freebsd-ports
mailing list