I'm setting up my Anaconda enviroment recently,I have two enviroments:
I checked the zipline eviroment's python version,it shows python3.5.6,BUT when I input "zipline" it showed this,I've added both python35 & python37 to my enviroment PATH.
(zip35) C:\Users\th>zipline
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "C:\Python37\Lib\io.py", line 52, in <module>
File "C:\Python37\Lib\abc.py", line 147
print(f"Class: {cls.__module__}.{cls.__qualname__}", file=file)
^
SyntaxError: invalid syntax
Could anyone help me out?
You have messed up your set up with this:
I've added both python35 & python37 to my enviroment PATH
Which results in a weird mix between your anaconda env and the version you have at C:\Python37
From your question, I gather the following:
zip35
which uses python version 3.5C:\Python37
PATH
To fix, do the following:
C:\Python37
, there is no valid reason to have that next to your anaconda installation. It just creates confusionzipline
, then use the zip35
environment, if you want python 3.7 then use the base env of anaconda or create a seperate one.