-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ImportError: cannot import name 'sysconfig' #5356
Comments
|
The line giving the error is this one. So to get the error we run: python3 -c "from distutils import sysconfig as distutils_sysconfig" |
Looks like your python3 installation is broken, then, as distutils is part of the stdlib and should be present. I wonder whether Ubuntu does something weird like not installing the whole stdlib by default? I wouldn't put it past them. It might be worth checking... |
It seems that sudo apt install python3-distutils fix this issue. |
Yay Ubuntu :-( Are you OK to close this issue in that case? |
@Tarliton It works! Thank u very much! |
@pfmoore I have sovled my problem! Thank's a lot! |
I'm having the same issue on a fresh 18.04. I can |
@ryanfox are you using |
18.04 doesn't have 2.7 installed. |
@ryanfox With the same situation, I can import sysconfig too, but I must install the |
@ryanfox when you |
I installed pip via get-pip.py:
Surely that doesn't install 2.7. |
@ryanfox still - did you ensure the full python stdlib is present? |
For what it's worth, I apt installed |
Thanks, @Tarliton, your solution worked. |
on windows ? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
This is my first time to install pip in my Ubuntu 18.04 LTS that I have just installed for serveral days. After using "curl" command to download the "get-pip.py" file and running the command "python3 get-pip.py", I got the error message. The error message is following.
What I've run:
The error message:
The text was updated successfully, but these errors were encountered: