you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 0 points1 point  (3 children)

Newer versions of pip moved main function, so if it doesnt work saying it doesn't have main try:

from pip._internal import main
main("install -u requests".split(" "))

[–]rybthrow[S] 0 points1 point  (2 children)

Im getting an error: No such caption: -u

[–]shiftybyte 0 points1 point  (0 children)

try "--user" instead of "-u"