#๐Ÿ”’ trying to install a library and this error shows up

24 messages ยท Page 1 of 1 (latest)

wicked snowBOT
#

@wraith vine

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

tidal yew
#

!paste - copy-paste the whole error in here

wicked snowBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

tidal yew
#

also store your token in another file and load it from there

#

easiest is just bot.run(open("token.txt").read())

trim jay
#

The error shows instructions to install the build tools

#

They come with Microsoft Visual Studio (not code)

wraith vine
#

Resetted ๐Ÿฅ€

wraith vine
trim jay
#

I wonder why it's not just using a wheel

trim jay
#

You are installing an old version that doesn't have 3.13 wheels

#

So you'll have to build the wheel yourself if you want that

#

Follow the instructions in the error to do so

wraith vine
#

Ah i see

trim jay
#

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/v isual-cpp-build-tools/

wraith vine
undone ravine
#

pwnkit also sounds suspiciously like malware

#

As does pwncode.py (which you even misspelled, lul)

sage gust
#

Seems like OP tryna make a Politics and War Discord bot! Cool!

I think everyone mentioned it, aiohttp (a package dependency) requires C++ build tools, but a C++ build tools dependency is outdated or not installed.

If you are on windows and not using WSL/Docker, installing off that url is fine. if you are using WSL or Docker, installing build-essential may help ๐Ÿ™‚

Also - regenerate your token and put in a file/env_var (Or at the very least edit it out the screenshot!)

If this is going onto github (especially public repositories)- I'd recommend gitignoring the file containing this token ๐Ÿ™‚

wraith vine
wicked snowBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.