DEV Community

Cover image for Conda equivalent of `pipenv run`
Mikołaj Buchwald
Mikołaj Buchwald

Posted on

Conda equivalent of `pipenv run`

If you wish to run a single command using a Python environment created with conda (i.e., you don't want to activate the environment first), you can use the following command:

conda run -n your_env_name some_command
Enter fullscreen mode Exit fullscreen mode

E.g.:

conda run -n webprojects python --version
Enter fullscreen mode Exit fullscreen mode

or:

conda run -n datascience jupyter lab
Enter fullscreen mode Exit fullscreen mode

Make sure that you are using the -n argument; pipenv does not require specifying an "optional" argument, hence it took me some time to get this working (i.e., it works just like pipenv run jupyter lab).

References:


Cover Photo by Thomas Oldenburger on Unsplash

Image of Docusign

Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay