First time here? Check out the FAQ!
1

The editable mode installed package by pip cannot be completed by default.

It seems that the editable mode installed package by pip cannot be completed by default. In order to enable the completion for them, I must add the package directory into wing's python path, as shown below:

image description

However, this method becomes very inconvenient if I have many such installed packages. I wonder if there is a better solution to this problem.

Regards, Zhao

hongyi-zhao's avatar
547
hongyi-zhao
asked 2024-06-24 01:07:40 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2024-07-03 08:50:07 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Using the compat mode for editable installs should fix this. The command line for installing the current directory is:

python -m pip install -e . --config-settings editable_mode=compat

Wingware Support's avatar
4.1k
Wingware Support
answered 2024-06-24 11:45:03 -0500
edit flag offensive 0 remove flag delete link

Comments

Yes. It does the trick. See https://stackoverflow.com/questions/763… for the related discussion.

hongyi-zhao's avatar hongyi-zhao (2024-06-24 19:05:15 -0500) edit
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