question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use `python.venvPath` for Pipenv support

See original GitHub issue

What’s the output of :CocCommand pyright.version `[coc.nvim] coc-pyroght 1.1.255 with Pyright 1.1.255

Hi,

I saw the argument python.venvPath and I’m wondering how I can use it for activating Pipenv venvs with Pyright. Or, how can I use that argument?

For example, if I use the root dir of the vens dir from Pipenv, then Pyright will scan all created venvs? Or do I have to use the root dir of the current venv?

Thnx!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
fannheywardcommented, Jun 26, 2022

You didn’t need to set python.venvPath, just activate the venv for your project, then vim your Python files.

1reaction
fannheywardcommented, Aug 22, 2022

Check :CocCommand workspace.showOutput Pyright to make sure you’re using the correct Python for your project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipenv & Virtual Environments
This tutorial walks you through installing and using Python packages. It will show you how to install and use the necessary tools and...
Read more >
Using Python environments in VS Code
Configuring Python Environments in Visual Studio Code. ... The extension looks for virtual environments in the first-level subfolders of venvPath .
Read more >
Get path of virtual environment in pipenv - Stack Overflow
There have some options that suggest you enable this command: Recommend, create a ~/.customfunction file and paste it, then use this command: $...
Read more >
pipenv install --target /path/to/my/virtualenv/folder #746 - GitHub
I think this is the location where --target could be supported, something like "pipenv run pip install --target {0} -r {1}" (where {1}...
Read more >
venv — Creation of virtual environments — Python 3.11.1 ...
The venv module supports creating lightweight “virtual environments”, each with their own independent set of Python packages installed in their site ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found