-
Notifications
You must be signed in to change notification settings - Fork 18
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 'elevate' (Linux) #7
Comments
I can't reproduce that. Are you sure that |
Yes. `pip3 install --user elevate Collecting elevate |
Could you please run:
and report back? |
I note that Python 3.6 isn't in the Linux Mint 19 package repos. How did you install it? |
python -V: Python 2.7.15+ |
Due to the unique way that language package managers (pip included) treat library installations, this is (one of) the only cases where such a failure is possible. If you clone the repository to When That's a description of the problem; hopefully it's explained well. This is a structural limitation of I have some ideas about formal solutions or workarounds to
|
This comment has been minimized.
This comment has been minimized.
or you just import elevate and look what |
`/usr/bin/python3.6 /home/dignity/Projects/HostEditor/main.py
Traceback (most recent call last):
File "/home/dignity/Projects/HostEditor/main.py", line 8, in
from elevate import elevate
ModuleNotFoundError: No module named 'elevate'
Process finished with exit code 1`
Python version:
Python 3.6.7
OS:
Linux Mint 19.1 (Ubuntu 18.04 based, 64 Bit)
How i installed the package:
pip3 install --user elevate
My Example:
`import os
from elevate import elevate
def is_root():
return os.getuid() == 0
print("before ", is_root())
elevate()
print("after ", is_root())`
The text was updated successfully, but these errors were encountered: