This post:

https://groups.google.com/forum/#!topic/spyderlib/NWGlu7r7xxo

suggests you can launch Spyder with a conda virtual environment activated:

spyder3 activate myenv

However, when I try this it throws an error with one of the Python 
libraries:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 2331, in 
main
    mainwindow = run_spyder(app, options, args)
  File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 2215, in 
run_spyder
    main.setup()
  File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 730, in 
setup
    from spyderlib.plugins.console import Console
  File "/usr/lib/python3/dist-packages/spyderlib/plugins/console.py", line 
31, in <module>
    from spyderlib.widgets.internalshell import InternalShell
  File "/usr/lib/python3/dist-packages/spyderlib/widgets/internalshell.py", 
line 40, in <module>
    from spyderlib.widgets.shell import PythonShellWidget
  File "/usr/lib/python3/dist-packages/spyderlib/widgets/shell.py", line 
35, in <module>
    from spyderlib.widgets.sourcecode.base import ConsoleBaseWidget
  File 
"/usr/lib/python3/dist-packages/spyderlib/widgets/sourcecode/base.py", line 
29, in <module>
    from spyderlib.widgets.mixins import BaseEditMixin
  File "/usr/lib/python3/dist-packages/spyderlib/widgets/mixins.py", line 
18, in <module>
    from xml.sax.saxutils import escape
  File 
"/home/derek/miniconda3/envs/coastops/lib/python3.6/xml/sax/saxutils.py", 
line 6, in <module>
    import os, urllib.parse, urllib.request
  File 
"/home/derek/miniconda3/envs/coastops/lib/python3.6/urllib/request.py", 
line 88, in <module>
    import http.client
  File "/home/derek/miniconda3/envs/coastops/lib/python3.6/http/client.py", 
line 1063
    chunk = f'{len(chunk):X}\r\n'.encode('ascii') + chunk \

(My actual project runs just fine, so there is no inherent problem with 
these libraries.)

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to