-
Notifications
You must be signed in to change notification settings - Fork 106
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
definition not found: nogil-3.9.10-1 #118
Comments
Hi @xuanvuzzz2601 - I don't think pyenv for Windows supports nogil (only pyenv for Linux and macOS). You can use the Windows installer from here: https://github.com/colesbury/nogil/releases (python-3.9.10-amd64.exe), but be warned that there are fewer support C-API extensions for nogil on Windows than for Linux or macOS. |
Hi @xuanvuzzz2601, what is your definition of working/not working? How do you invoke your script? I have run your example (with slight enhancements): from threading import Thread
import time
import sys
print(sys.flags)
COUNT = 50000000
def countdown(n):
while n>0:
n -= 1
# 1st pass
start = time.time()
countdown(COUNT)
end = time.time()
print('Time taken in seconds -', end - start)
# 2nd pass
t1 = Thread(target=countdown, args=(COUNT//2,))
t2 = Thread(target=countdown, args=(COUNT//2,))
start = time.time()
t1.start()
t2.start()
t1.join()
t2.join()
end = time.time()
print('Time taken in seconds -', end - start) And I got the following result running
Please note that the |
I try "pyenv install nogil-3.9.10-1" but did not succeed.
[info]:
:: [Info] :: Mirror: https://www.python.org/ftp/python
pyenv-install: definition not found: nogil-3.9.10-1
See all available versions with
pyenv install --list
.Does the list seem out of date? Update it using
pyenv update
.The text was updated successfully, but these errors were encountered: