Coder Social home page Coder Social logo

Comments (5)

viniciusban avatar viniciusban commented on June 1, 2024 7

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.

alesso-x avatar alesso-x commented on June 1, 2024

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.

danhper avatar danhper commented on June 1, 2024

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.

gabrielmancini avatar gabrielmancini commented on June 1, 2024

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.

darkn3rd avatar darkn3rd commented on June 1, 2024

Is .python-version supported with support for virtualenv?

from asdf-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.