#๐Ÿ”’ Can't install Tiktoken

51 messages ยท Page 1 of 1 (latest)

austere spireBOT
#

@dreamy nymph

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.

dreamy nymph
#

...

#

I swear

#

Can't install Tiktoken as a dependacny to Autogenstudio
When I run pip install tiktoken I get error: can't find Rust compiler

craggy bridge
#

you can check with pip --version

broken loom
#

And what python version, for that matter?

olive apex
#

Are you on win32 rather than windows 64bit?

broken loom
dreamy nymph
#

I'm using pip 24.0 and 3.10.4 but my venv is 3.10, does that matter?

broken loom
#

What does python -VV say?

dreamy nymph
#

a lot of things?

olive apex
#

!paste

austere spireBOT
#
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.

dreamy nymph
#

I see

broken loom
#

-VV, not -vv

dreamy nymph
#

uh oh

#

Python 3.10.4 | packaged by conda-forge | (main, Mar 30 2022, 13:41:19) [MSC v.1916 32 bit (Intel)]

broken loom
#

that said, I notice in your log that some of your packages are marked win32, so probably graingert is right- yeah.

#

Is there a particular reason you're using 32-bit python?

dreamy nymph
dreamy nymph
#

Does it change things?

broken loom
#

Yeah, significantly. You should probably switch to 64-bit.

dreamy nymph
#

I see

#

Is it easy or do I have to reinstall all of my libraries?

broken loom
#

I don't use anaconda, i'm not sure how it's done there - conda install python==3.10 is a thing, though I'm not sure how to switch to 64-bit from 32-bit

dreamy nymph
#

hmm

#

Well I don't have to use conda I just forgot how to do venvs normally

broken loom
#

oh. some of the googling I'm doing seems to imply you installed 32-bit anaconda, and will need to reinstall it entirely

dreamy nymph
broken loom
broken loom
dreamy nymph
#

yes indeed

olive apex
#

I'd be tempted to use Windows store python

#

If you don't need conda install

dreamy nymph
broken loom
#

personally i use the python from the site and don't use anaconda

#

though conda is quite nice to have for windows users, for installing things that aren't python packages, like CUDA or tesseract or whatever. (but a package manager like Chocolatey solves that, too.)

dreamy nymph
#

I didn't know conda did that

#

btw, according to my guide, I'm supposed to use python3 but it is unrecognized?

broken loom
#

python3 isn't a thing on windows.

dreamy nymph
#

I see

broken loom
#

(it's how python 3 is called on linux and mac, because it used to be the case that python refers there to (builtin) python2)

olive apex
#

There's a little py launcher you can use on windows

dreamy nymph
#

hmm okay

#

okay seems to have worked, thank you!

austere spireBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.