Facing an Error after migrating from python 3.4.1 to python 3.6.6 ( Failed to import the site module )

Piet van Oostrum piet-l at vanoostrum.org
Fri Dec 28 07:11:40 EST 2018


sandeep.bayi6 at gmail.com writes:

> ``````````````````````````````````````````````````````````````````````````` 
> Error code: 
> -------------------------------------------------------------------------- 
>
>
> Traceback (most recent call last): 
>   File "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\Lib\site.py", line 73, in <module 
>     import os 
>   File "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\Lib\os.py", line 652, in <module> 
>     from _collections_abc import MutableMapping 
>   File "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\Lib\_collections_abc.py", line 58 
>     async def _coro(): pass 
>             ^ 
> SyntaxError: invalid syntax 
> Failed to import the site module 
>
> ```````````````````````````````````````````````````````````````````````````` 
> After migrating from python 3.4.1 to python 3.6.6 
> while Executing my project, I'm facing this issue and not able to
> resolve it. Can i get any solution for this issue?

Could it be that your PYTHONPATH environment variable is set to a directory in Python 3.4.1?

-- 
Piet van Oostrum <piet-l at vanoostrum.org>
WWW: http://piet.vanoostrum.org/
PGP key: [8DAE142BE17999C4]



More information about the Python-list mailing list