Comments (5)
Unfortunately, this suggestion does not work.
The caveat is having more than one python "version" active at the same time.
With the pyenv-virtualenv
plugin, pyenv recognizes a virtualenv as if it was a python version, allowing me to do this:
$ pyenv global 3.7.6 jupyter_venv
Notice I am setting 3.7.6 and jupyter_venv
at the same time as global python versions.
The command above sets the path in a way that if I issue the command $ jupyter
, it will search it in the vanilla python 3.7.6 and, if not found, search for it inside the jupyter_venv
.
I could not achieve it with asdf.
from asdf-python.
You can use the builtin venv command to create virutalenvs python -m venv jupyter
. It will use the existing python in your path, make sure to change python version asdf shell python 3.7.6
.
from asdf-python.
I am not familiar with pyenv virtualenv but the builtin venv module should indeed work without any issue.
Please comment if you think this should be reopened.
from asdf-python.
i think is a little trick to use env @danhper @alessod
i have a different experience but i think is related, so let me put here my bootstrap
asdf plugin-add python
asdf install python 3.8.2
asdf global python 3.8.2
asdf plugin-add pip
asdf install pip
asdf reshim python
pip install --upgrade pip
pip install virtualenv
asdf reshim python
before u will sufering sudo apt-get install (find de erros depends of de os)
cd mystuff
virtualenv venv -p python3
source venv/bin/activate
pip install -f requirements.txt
scrapy crawl myspyder
requirements.txt
appdirs==1.4.3
attrs==19.3.0
Automat==20.2.0
cffi==1.14.0
constantly==15.1.0
cryptography==2.9.2
cssselect==1.1.0
distlib==0.3.0
filelock==3.0.12
hyperlink==19.0.0
idna==2.9
appdirs==1.4.3
attrs==19.3.0
Automat==20.2.0
cffi==1.14.0
constantly==15.1.0
cryptography==2.9.2
cssselect==1.1.0
distlib==0.3.0
filelock==3.0.12
hyperlink==19.0.0
idna==2.9
incremental==17.5.0
lxml==4.5.0
numpy==1.18.4
pandas==1.0.3
parsel==1.5.2
Protego==0.1.16
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
PyDispatcher==2.0.5
PyHamcrest==2.0.2
pyOpenSSL==19.1.0
python-dateutil==2.8.1
pytz==2020.1
queuelib==1.5.0
Scrapy==2.1.0
service-identity==18.1.0
six==1.14.0
Twisted @ git+git://github.com/twisted/twisted.git@6d5ea4d4cc980ecf90cc05643fd9ff14e8b4d05d
virtualenv==20.0.20
w3lib==1.21.0
zope.interface==5.1.0
i had a this error
File "/home/xxx/.asdf/installs/python/3.8.2/lib/python3.8/bz2.py", line 19, in <module>
from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'
from asdf-python.
Is .python-version
supported with support for virtualenv?
from asdf-python.
Related Issues (20)
- Cannot install Python 3.8.2 on macOS ARM HOT 3
- Provide an option to install standalone binary HOT 1
- Expand the build documentation HOT 1
- Exclude pip modules from reshim?
- preferred way to export `libpython3.so` to ldd?
- In termux isn't work
- Dependency Dashboard
- Python 2.7.8 install fails whilst trying to install pipx
- Unable to install miniconda3 HOT 1
- Debian dependencies HOT 1
- Readme tip to use environment variable to patch causes all Python installation for all versions to fail on MacOS Sonoma 14.0 HOT 1
- [BUG] if .default-python-packages package installation fails python version isn't installed. HOT 1
- asdf doesn't link python install to my path mac studio M2 Max
- Building packages from AUR using python provided by asdf-vm fails HOT 1
- Error during python installation with python 3.11.6 Macbook Pro Core i5 Sonoma 14.3 HOT 2
- Fail to execute python after upgrading asdf by Homebrew
- Error to install some version of python HOT 1
- Cannot install python 3.12 HOT 1
- `python -V` loads indefinitely after setting `python system` in `~/.tool-versions` globally HOT 2
- "No preset version installed for command clear" after installing python 3.12.3 and anaconda3-2024.02-1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asdf-python.