Re: wingide-users Digest, Vol 137, Issue 3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wingide-users Digest, Vol 137, Issue 3

WingIDE - User mailing list
Hi Andy,

I use wing with conda virtual environments all the time, both on OS X and Linux without trouble.  I am not familiar with the virtual environment commands you are using so I expect it is not within anaconda python but maybe the following will work for you as it does for me.

Within the Project Properties dialog, I set Python Executable to be the output of sys.executable from the Python interpreter.  Run the interpreter for your virtual environment outside of Wing.  From that interpreter, run import sys; print(sys.executable) then use the resulting value for the Python Executable field in your Project Properties dialog.  

If that does not work with your virtual environment, perhaps consider switching to Anaconda Python distribution to resolve this; I have had great success with it.

Steven C. Howell, Ph.D.
Physicist
Neutron Condensed Matter Science
NIST Center for Neutron Research
National Institute of Standards and Technology
100 Bureau Dr. STOP 6102
Gaithersburg, MD 20899-8320
<a href="tel:%28301%29%20975-4854" value="+13019754854" target="_blank">(301) 975-4854



On Fri, Nov 18, 2016 at 12:00 PM, <[hidden email]> wrote:
Send wingide-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        http://wingware.com/mailman/listinfo/wingide-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of wingide-users digest..."


Today's Topics:

   1. virtual environment in Wing IDE does not work Mac OS X
      (Andrew Ratcliffe)


----------------------------------------------------------------------

Message: 1
Date: Fri, 18 Nov 2016 16:34:04 +0000
From: Andrew Ratcliffe <[hidden email]>
To: Wing IDE Support via wingide-users <[hidden email]>
Subject: [wingide-users] virtual environment in Wing IDE does not work
        Mac     OS X
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="us-ascii"

Hi,
I am trying to use the python virtual environment with wing IDE and it just does not seem to work. I have it set up in the project properties it just totally ignores it and the path reverts to the where the link is from so back to the Library:
set up the virtual env on the command line like this:
  python3 -m venv python
  source python/bin/activate

Add project properties Custom Python Executable:
/Users/andy/cef-consumer/python/python3
Immediately updates itself to where the symbolic link is:
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5


I tried adding the custom python path in the properties (/Users/andy/cef-consumer/python)but nothing works.

Is there anything special required to get it to work?




Kind regards,
Andy
[hidden email]<mailto:[hidden email]>
CISSP, CSTA, CSTP, CWSA
GIAC: GCIA, GCIH, GPEN, GWAPT, GCFE, GREM
Computer Forensic & Security Specialist
Blog.InfoSecMatters.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://wingware.com/pipermail/wingide-users/attachments/20161118/a13a2a7a/attachment-0001.html>

------------------------------

Subject: Digest Footer

_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide

------------------------------

End of wingide-users Digest, Vol 137, Issue 3
*********************************************


_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
Loading...