I'm learning network automation using python. I'm unable to install Napalm-fortios module in my pycharm because of the error as below.
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\user\PycharmProjects\DUKE\venv\Scripts\python.exe'.
Collecting napalm-fortios Using cached napalm-fortios-0.4.1.tar.gz (7.0 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\user\PycharmProjects\DUKE\venv\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pycharm-packaging\\napalm-fortios\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pycharm-packaging\\napalm-fortios\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pycharm-packaging\napalm-fortios\pip-egg-info'
cwd: C:\Users\user\AppData\Local\Temp\pycharm-packaging\napalm-fortios\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pycharm-packaging\napalm-fortios\setup.py", line 6, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Update PIP using below command,
Command to install napalm-fortios package,