-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: can't set up dev environment -- Import Error: C extensions: ... #34280
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
Comments
Are you getting any output from |
Yes I did get lots of output but that went out of my Anaconda Prompt buffer: Here's the last lines in the buffer that I got from
|
Do you get the same error when, from the anaconda prompt (with python and then, in the Python REPL, import pandas ? |
@MarcoGorelli I get a similar error when running Python directly in Anaconda Prompt:
|
@joooeey in your last output, can you run |
Running from |
I just noticed that of the two Tracebacks given in the problem description (and copied straight above), the lower one has illogical grammar. So the suggestion to rebuild the C extensions in the exception text may be intended for a different For context the relevant snippet from
The upper of the two Tracebacks (the original exception) just points to a missing module |
I just tried running
|
|
I solved this by updating the Visual Studio Build Tools 2019 from 15.4.0 to 16.6.0 and running:
|
Upgrading the Build Tools to VS 2019 resolves all the issues. |
I'm on Ubuntu and installed via conda |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
pulled out from #33821 (the main symptom was that
import pandas
failed (see problem description):I just re-built the pandas-dev environment altogether:
I ran:
conda env remove --name pandas-dev
The
pandas-joooeey
folder was still there so I deleted it.Then I ran in Git Bash:
And then the following commands in Anaconda Prompt (as given by
doskey /history
:None of these threw errors. However, I still get an error when I
import pandas
in Spyder (I made sure to open a fresh console in Spyder):I also tried re-basing master from upstream in Git Bash:
Console output:
After that,
import pandas
still results in the same C extension error as given above.The only thing I left untouched was the Visual Studio Build Tools 2019.
I have the following build tools installed/missing:
Installation details
MSBuild Tools
Provides the tools required to build MSBuild-based applications.
C++ build tools
Included
C++ Build Tools core features
C++ 2019 Redistributable Update
Optional
MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.25)
Windows 10 SDK (10.0.18362.0)
C++ CMake tools for Windows
Testing tools core features - Build Tools
C++ AddressSanitizer (Experimental)
C++ ATL for latest v142 build tools (x86 & x64)
C++ MFC for latest v142 build tools (x86 & x64)
C++/CLI support for v142 build tools (14.25)
C++ Modules for v142 build tools (x64/x86 – experimental)
C++ Clang tools for Windows (9.0.0 - x64/x86)
Windows 10 SDK (10.0.17763.0)
Windows 10 SDK (10.0.17134.0)
Windows 10 SDK (10.0.16299.0)
MSVC v141 - VS 2017 C++ x64/x86 build tools (v14.16)
MSVC v140 - VS 2015 C++ build tools (v14.00)
Problem description
import pandas
fails on mymaster
branch:Output of
pd.show_versions()
N/A -- cannot even import Pandas.
The fork from pandas-dev was made in April 2020.
The text was updated successfully, but these errors were encountered: