Facing an Error after migrating from python 3.4.1 to python 3.6.6 ( Failed to import the site module )
sandeep.bayi6 at gmail.com
sandeep.bayi6 at gmail.com
Mon Dec 31 01:10:49 EST 2018
On Friday, December 28, 2018 at 5:41:52 PM UTC+5:30, Piet van Oostrum wrote:
> 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]
Thankyou, but not worked.
Then i tried by removing the python 3.6.6 variables from PYTHONPATH and now , it is working fine for me
More information about the Python-list
mailing list