VPython in Spyder

27 views
Skip to first unread message

Harlan Gilbert

unread,
May 17, 2023, 4:49:02 PM5/17/23
to spyder
Is anyone using VPython successfully in Spyder?

I cannot import VPython into Spyder.
VPython is already installed in my executable library.

Running a program with
import VPython
gives me the error ModuleNotFoundError: No module named 'VPython'

In the Console,
%pip install VPython gives me the message below, with errors.

Any suggestions?

________________________________________Error message follows_______________
  Using cached vpython-7.6.4.tar.gz (4.5 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
  error: subprocess-exited-with-error
 
  pip subprocess to install build dependencies did not run successfully.
  exit code: 1
 
  [17 lines of output]
  Collecting setuptools
    Using cached setuptools-67.7.2-py3-none-any.whl (1.1 MB)
  Collecting wheel
    Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
  Collecting setuptools_scm
    Using cached setuptools_scm-7.1.0-py3-none-any.whl (43 kB)
  Collecting cython
    Using cached Cython-0.29.34-py2.py3-none-any.whl (988 kB)
  Collecting packaging>=20.0 (from setuptools_scm)
    Using cached packaging-23.1-py3-none-any.whl (48 kB)
  Collecting typing-extensions (from setuptools_scm)
    Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
  Installing collected packages: wheel, typing-extensions, setuptools, packaging, cython, setuptools_scm
  ERROR: Cannot set --home and --prefix together

Carlos Córdoba

unread,
May 18, 2023, 8:27:46 AM5/18/23
to spyd...@googlegroups.com
Hi,

Please read this entry in our docs:

https://docs.spyder-ide.org/5/faq.html#using-packages-installer

if you're using our Windows or Mac installer; or this one:

http://docs.spyder-ide.org/current/faq.html#using-existing-environment

if you're using another installation media to understand how to solve your problem.


Cheers,
Carlos

El 17/05/23 a las 20:01, Harlan Gilbert escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/54912eb6-8eed-4af6-ba4f-6d771d68949dn%40googlegroups.com.

Erdoğan Peker

unread,
May 18, 2023, 9:38:19 AM5/18/23
to spyd...@googlegroups.com
Thank you for your comment it's so helpfull

Carlos Córdoba <ccord...@gmail.com>, 18 May 2023 Per, 15:27 tarihinde şunu yazdı:

Harlan Gilbert

unread,
May 21, 2023, 10:26:13 PM5/21/23
to spyder
OK, I solved the problem.  In case anyone else has this issue:

In the Spyder Console, I entered:
%pip install ez_setup
%pip install setuptools
%pip install vpython

Voila, it works!

(Just the vpython installation failed because some dependencies were missing.)

Evans Kamala

unread,
May 22, 2023, 11:19:06 AM5/22/23
to spyd...@googlegroups.com
hello, for assignment help, whatsapp me +254745920235

Virus-free.www.avast.com

Reply all
Reply to author
Forward
0 new messages