First time here? Check out the FAQ!
1

Possible to use PipEnv projects in Wing IDE

hi,

im not sure how to do this, virtualenv works fine as i can direct the project to the right python binary, but started to get the feel for PipEnv especially for my Django projects, but any way im able to work with PipEnv and Wing IDE ?

MT drip's avatar
21
MT drip
asked 2018-04-08 04:48:00 -0600
Wingware Admin's avatar
231
Wingware Admin
updated 2019-03-13 08:33:08 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

2

Make sure you have built an pipevn environment in the project directory and install all packages in Piplfile.

> pipenv install

Get the python executable path

> pipenv --py
/Users/Leon/.local/share/virtualenvs/stone-bi.py-s6oh35tQ/bin/python

Copy the path into Wing project setting.Wing -> Project -> Project Properties... -> Environment -> Python Executable

Thus Wing should detect the pipenv environment correctly.

Leon H.'s avatar
36
Leon H.
answered 2018-04-09 04:06:00 -0600
Wingware Admin's avatar
231
Wingware Admin
updated 2019-03-07 09:11:01 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

Start wing from the command line where your virtual environment is activated.  This is an alias I use on MAC, pretty similar to what you would use on linux (but the path to the executable will be different)

alias wg='/Applications//WingIDE.app/Contents/Resources/wing'wg *.wpr &

Mark Jones's avatar
83
Mark Jones
answered 2018-04-08 08:47:00 -0600
Wingware Admin's avatar
231
Wingware Admin
updated 2019-03-07 09:10:08 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer