I am trying to build the python api for an open source project called Zulip and I keep running into the same issue as indicated by the screenshot below.
I am running python3 and my pip version is 10.0.0. The file in question is setup.py
and the code that is messing up is when the pip.main()
attribute is accessed to install a package.
Now, I know this build should succeed because its an open source project, but I have been trying for hours to fix the dependency issue regarding pip.main()
.
Any help would be greatly appreciated.
For me this issue occured when I was running python while within my site-packages folder. If I ran it anywhere else, it was no longer an issue.
This helps me, https://pip.pypa.io/en/stable/installing/
If you are using python3 and not set it default. do this,
It works for me.
Try this command.
Edit file: C:\Users\kpate\hw6\python-zulip-api\zulip_bots\setup.py in line 108
to
do
My solution is to check the version number of pip and use the import the correct main function correctly
Step 1 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py Step2 python get-pip.py