On Monday, August 19, 2019 at 9:58:29 AM UTC-7, Haopei Yang wrote:
> Hello, I have posted this same question on stackoverlfow.
> 
> 
> 
> I am going through the Google Cloud Platform's Python Bookshelf App Tutorial 
> and I am at the step of starting up my virtualenv where I am stuck.
> Running virtualenv -p python3 env produces this error:
> 
> 
> 
> ⇒  virtualenv -p python3 env
> 
> 
> 
> Running virtualenv with interpreter 
> /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
> 
> Using base prefix '/Library/Frameworks/Python.framework/Versions/3.6'
> 
> New python executable in 
> /Users/myUserName/Lab/gae-bookshelf-app-python-flexible-experiment/getting-started-python/2-structured-data/env/bin/python3
> 
> Also creating executable in 
> /Users/myUserName/Lab/gae-bookshelf-app-python-flexible-experiment/getting-started-python/2-structured-data/env/bin/python
> 
> Please make sure you remove any previous custom paths from your 
> /Users/myUserName/.pydistutils.cfg file.
> 
> Installing setuptools, pip, wheel...
> 
>   Complete output from command 
> /Users/myUserName/Lab/ga...data/env/bin/python3 - setuptools pip wheel:
> 
>   Collecting setuptools
> 
>   Using cached 
> https://files.pythonhosted.org/packages/75/b3/0a106dfaf7f48aef638da80b32608617cc8de4b24a22c8cd3759c32e5d30/setuptools-41.1.0-py2.py3-none-any.whl
> 
> Collecting pip
> 
>   Using cached 
> https://files.pythonhosted.org/packages/8d/07/f7d7ced2f97ca3098c16565efbe6b15fafcba53e8d9bdb431e09140514b0/pip-19.2.2-py2.py3-none-any.whl
> 
> Collecting wheel
> 
>   Using cached 
> https://files.pythonhosted.org/packages/bb/10/44230dd6bf3563b8f227dbf344c908d412ad2ff48066476672f3a72e174e/wheel-0.33.4-py2.py3-none-any.whl
> 
> Installing collected packages: setuptools, pip, wheel
> 
> Exception:
> 
> Traceback (most recent call last):
> 
>   File 
> "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.0.2-py2.py3-none-any.whl/pip/basecommand.py",
>  line 209, in main
> 
>     status = self.run(options, args)
> 
>   File 
> "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.0.2-py2.py3-none-any.whl/pip/commands/install.py",
>  line 317, in run
> 
>     prefix=options.prefix_path,
> 
>   File 
> "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.0.2-py2.py3-none-any.whl/pip/req/req_set.py",
>  line 731, in install
> 
>     **kwargs
> 
>   File 
> "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.0.2-py2.py3-none-any.whl/pip/req/req_install.py",
>  line 841, in install
> 
>     self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
> 
>   File 
> "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.0.2-py2.py3-none-any.whl/pip/req/req_install.py",
>  line 1040, in move_wheel_files
> 
>     isolated=self.isolated,
> 
>   File 
> "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.0.2-py2.py3-none-any.whl/pip/wheel.py",
>  line 343, in move_wheel_files
> 
>     clobber(source, lib_dir, True)
> 
>   File 
> "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.0.2-py2.py3-none-any.whl/pip/wheel.py",
>  line 321, in clobber
> 
>     shutil.copyfile(srcfile, destfile)
> 
>   File 
> "/Users/myUserName/Lab/gae-bookshelf-app-python-flexible-experiment/getting-started-python/2-structured-data/env/lib/python3.6/shutil.py",
>  line 121, in copyfile
> 
>     with open(dst, 'wb') as fdst:
> 
> PermissionError: [Errno 13] Permission denied: 
> '/lib/python3.6/site-packages/easy_install.py'
> 
> ----------------------------------------
> 
> ...Installing setuptools, pip, wheel...done.
> 
> Traceback (most recent call last):
> 
>   File "/Library/Python/2.7/site-packages/virtualenv.py", line 2327, in 
> <module>
> 
>     main()
> 
>   File "/Library/Python/2.7/site-packages/virtualenv.py", line 711, in main
> 
>     symlink=options.symlink)
> 
>   File "/Library/Python/2.7/site-packages/virtualenv.py", line 944, in 
> create_environment
> 
>     download=download,
> 
>   File "/Library/Python/2.7/site-packages/virtualenv.py", line 900, in 
> install_wheel
> 
>     call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
> 
>   File "/Library/Python/2.7/site-packages/virtualenv.py", line 795, in 
> call_subprocess
> 
>     % (cmd_desc, proc.returncode))
> 
> OSError: Command /Users/myUserName/Lab/ga...data/env/bin/python3 - setuptools 
> pip wheel failed with error code 2
> 
> 
> 
> 
> 
> 
> I had followed this guide to set up my python development environment. I 
> searched the internet for a solution but I haven't had luck getting pass this 
> step.
> What is causing the issue and how can I fix it?
> Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3d1a2ada-dc46-4310-89ee-c6da552eb6e2%40googlegroups.com.
  • [google-ap... Haopei Yang
    • [goog... 'Nicolas (Google Cloud Platform Support)' via Google App Engine
    • [goog... Paul L. Diaz

Reply via email to