Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a Python-like virtualenv exist in Julia?

Tags:

julia

Is there a Python-like virtualenv environment simulator for Julia where one can do development in a local, virtual environment?

like image 399
Dawny33 Avatar asked Nov 22 '15 12:11

Dawny33


People also ask

Does Julia have environments like Python?

Nowadays Julia has this kind of thing built into it's package manager, they're called environments and it's described here.

Does Python come with virtual environment?

Installing virtualenv If you are using Python 3.3 or newer, the venv module is the preferred way to create and manage virtual environments. venv is included in the Python standard library and requires no additional installation.


1 Answers

Currently (julia 1.2) is able to manage virual environments via it's builtin Pkg standard library module:

  • https://docs.julialang.org/en/v1/stdlib/Pkg
julia> ]  (v1.2) pkg> activate tutorial [ Info: activating new environment at `/tmp/tutorial/Project.toml`.  (tutorial) pkg>  (tutorial) pkg> status     Status `/tmp/tutorial/Project.toml`    (empty environment)  (tutorial) pkg> add Example ...  (tutorial) pkg> status     Status `/tmp/tutorial/Project.toml`   [7876af07] Example v0.5.1 

There is Playground.jl

A package for managing julia sandboxes like python's virtualenv (with a little influence from pyenv and virtualenvwrapper)

like image 191
HarmonicaMuse Avatar answered Oct 06 '22 14:10

HarmonicaMuse