Package operation Failed when importing pandas. How to resolve?
RakeshKrKr1 (0)

Updating dependencies
Resolving dependencies...

Writing lock file

Package operations: 2 installs, 1 update, 0 removals

• Updating numpy (1.20.3 -> 1.21.0)
• Installing pytz (2021.1)
• Installing pandas (1.3.0)

RuntimeError

Unable to find installation candidates for pandas (1.3.0)

at /opt/virtualenvs/python3/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
→ 72│ raise RuntimeError(
73│ "Unable to find installation candidates for {}".format(package)
74│ )
75│
76│ # Get the best link

Failed to add packages, reverting the pyproject.toml file to its original content.
exit status 1

Replit: Package operation failed.

You are viewing a single comment. View All
InvisibleOne (3264)

Delete you package files, run pip install pandas and then try again.

RakeshKrKr1 (0)

@InvisibleOne
Pandas is installed now, but can't import, it throws the same error.