Ok @oren, have you tried using pip? From the conda command prompt you can use:
pip install psychopy
However, you may have some bugs that appear, which are easily solved. The first bug relates to permissions when the pywin32 dependency is installed. To fix:
Next, you may have some issues importing the visual component when you have PsychoPy installed. The first error relates not to PsychoPy, but to Pyglet. If you are using an older version than 1.90.1, you may then need to patch the ~psychopy/visual/__init__.py file with the following:
## After import sys
if sys.platform == 'win32':
from pyglet.libs import win32 # pyglet patch for ANACONDA install
from ctypes import *
win32.PUINT = POINTER(wintypes.UINT)
This will fix the first bug. Then, you may have another error in the PsychoPy Pyglet backend, so you need to go to the Anaconda site-packages/psychopy/visual/backends/pygletbackend.py and add the following under import os:
import struct
#Then go to line 334 and change the line from:
_screenID = 0xFFFFFFFF & scrBytes
#to
_screenID = 0xFFFFFFFF & struct.unpack('P', scrBytes)[0]
This should correct any known errors in the Anaconda install. Hope this helps.
I think David @dvbridges is correct here: there’s no reason not to just use pip within your Anaconda environment. I don’t know if that original conda channel has been updated by @erik.kastman in quite a while.
Hi @Shelling, yes there is a new fix which should be included in the latest release. Rather than change the Pyglet file, you can patch the psychopy.visual.__init__.py file:
# After import sys
if sys.platform == 'win32':
from pyglet.libs import win32 # pyglet patch for ANACONDA install
from ctypes import *
win32.PUINT = POINTER(wintypes.UINT)