-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'pysnmp' #435
Comments
To add more insight to this issue, I have discovered another similar thread to mine which alerted me to check the python pip list. ####################################### pip 23.0.1 And py -m pip list command did not list pysnmp in the list but it gave me warning that I had an older pip installed. Package Version astroid 2.5.6 I ran this command and old pip was updated. c:\users\atech1973\batchfiles>C:\Users\atech1973\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip After this if run command py -m pip list > I still don't see pysnmp in the list but pip list shows me pysnmp in its list pip 23.0.1 I anyone has had this experience then please if you can help me out? |
Further to this problem resolution I have added my pip path to my environment path as well but still running the py -m pip list does not print the pysnmp being in the list. If I type pip without anything else, the path is shorter then if I run pip -V command. see below. As mentioned above, if I run pip -V command, I have pip Ver. 23.0.1 running but just noticed it's working directory is in a weird location and I am not sure if this is its working director that I should add to window path or the one above. C:\Users\atech1973\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pip (python 3.9) If I brows to the second long path location, I can see pysnmp diectory is in here. Cryptodome |
It will be rather lengthy to teach you enough Python, unless you buy great books/tutorials or just hire a consultant. So, the only tip I want to say is to learn the actual path of A tool like VS Code + Microsoft Python extension can easily guide you on which python.exe to use, so I never use IDLE Shell or the editor you used. |
Hello I am new to this library and not that much familiar with Python.
I have installed python 3.9.4 in Win10x64 platform and pip 23.0.1 and installed pysnmp successfully using pip install pysnmp command. However, when I run an example code to "fetch snmp variable" from this library "Quick Start" page, (https://pysnmp.readthedocs.io/en/latest/quick-start.html).
I get this error.
#########################################################
SyntaxError: multiple statements found while compiling a single statement
=========================== RESTART: E:\Python\pysnmp\fetch snmp variable.py ===========================
Traceback (most recent call last):
File "E:\Python\pysnmp\fetch snmp variable.py ", line 1, in
from pysnmp.hlapi import *
ModuleNotFoundError: No module named 'pysnmp'
########################################################
pysnmp install dump.
Collecting pysnmp
Downloading pysnmp-4.4.12-py2.py3-none-any.whl (296 kB)
---------------------------------------- 296.5/296.5 kB 6.1 MB/s eta 0:00:00
Collecting pysmi
Downloading pysmi-0.3.4-py2.py3-none-any.whl (80 kB)
---------------------------------------- 80.0/80.0 kB ? eta 0:00:00
Collecting pyasn1>=0.2.3
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
---------------------------------------- 77.1/77.1 kB 4.2 MB/s eta 0:00:00
Collecting pycryptodomex
Downloading pycryptodomex-3.17-cp35-abi3-win_amd64.whl (1.7 MB)
---------------------------------------- 1.7/1.7 MB 8.5 MB/s eta 0:00:00
Collecting ply
Downloading ply-3.11-py2.py3-none-any.whl (49 kB)
---------------------------------------- 49.6/49.6 kB 2.6 MB/s eta 0:00:00
Installing collected packages: pyasn1, ply, pysmi, pycryptodomex, pysnmp
Successfully installed ply-3.11 pyasn1-0.4.8 pycryptodomex-3.17 pysmi-0.3.4 pysnmp-4.4.12
The text was updated successfully, but these errors were encountered: