I am new in Python, I wanna install Jupyter Notebook in my console I enter the following:
pip3 install --upgrade pip
after that I have a error to use pip3 install other library, the console print:
File "/usr/bin/pip3", line 11, in <module>
sys.exit(main())
TypeError: 'module' object is not callable
I don't know what I have to do.
I use sudo autoremove python3-pip
after that I use sudo apt install python3-pip
As seen here, you should be able to solve this by running the module from Python directly, i.e.
In Windows edit C:\ProgramData\Anaconda3\Scripts\pip-script.py and replace
From the link by Bram, I just ran
python3 -m pip uninstall pip
, and it started to work again.The solution which worked for my situation is simply editing the pip3.8 file in the ubuntu environment.
Method1:
method2:
The main function has to be imported or we can simply replace line
As
Use this