Coder Social home page Coder Social logo

Comments (8)

gfreivasc avatar gfreivasc commented on May 19, 2024 2

In my linux installation, there is no difference between virtualenv versions. It actually creates environments that support both python and python3 (there is no python2, it's only python). Both pip and pip3 installations point to the same package and will alert that it is already installed when I try to run it on the second pip.

from vim-config.

rafi avatar rafi commented on May 19, 2024

That's actually links that Macports creates when installing virtualenv.
Notice in venv.sh I'm also trying virtualenv2and virtualenv3...
How are yours called?

from vim-config.

randavidovitz avatar randavidovitz commented on May 19, 2024

i simply ran
pip3 install -U neovim PyYAML

from vim-config.

rafi avatar rafi commented on May 19, 2024

venv.sh tries to look for:

  • virtualenv3 or virtualenv-3.5
  • virtualenv2 or virtualenv-2.7

You have to have virtualenv installed, both python2 and python3 version.
First check with your OS package-manager if you could install both, if not, try:

pip2 install virtualenv
pip3 install virtualenv

Then you should make sure the pip binary folder is within your $PATH.

from vim-config.

olymk2 avatar olymk2 commented on May 19, 2024

same i have virtualenv installed but there are no numbers prefixed, so it would be nice if the script checked for that to be more complete.
Don't really want to pip install virtualenv when i already have it installed, especially as I don't really use virtualenv's any more and just use docker.

from vim-config.

rafi avatar rafi commented on May 19, 2024

@gfreivasc @olymk2, do you use pyenv or virtualenv? How do you create py2 and py3 envs?

The script tries to create 2 virtual-environments and have Neovim use them as scripted here. Virtual-environments are NOT a must! Notice that config/neovim.vim first checks if those directories exist. Otherwise, if you don't want to use virtual-environments you can just use pip install neovim to install Neovim python bindings globally.

So to summarize:

  1. This is only for Neovim features, if you use classic Vim you don't need this.
  2. You don't have to use virtual-environments, read :h provider-python
  3. I'd love suggestions and examples on how you guys create python2 and python3 virtual-environments so I could amend the setup script. (My workstation is macOS with Macports)

from vim-config.

olymk2 avatar olymk2 commented on May 19, 2024

I don't really use virtualenv but I install it using the system package manager command below.

apt install python-virtualenv

The issue is more that the neovim setup script stops or breaks when virtualenv is not found so if it checked and skipped that part, or asked if you wanted it that would be helpful.

I really used this only because i wanted a quick vim setup for editing scripts on a raspberry pi, tend to use spacemacs but its huge to do a quick install on a pi so something pre configured for editing python would be ideal.

just realised basically you can skip this part if not using virtualenv, thats great but it would be good to use system one when needed.

cd ~/.config/nvim
./venv.sh

from vim-config.

rafi avatar rafi commented on May 19, 2024

venv.sh has since been updated. Let me know if there's still issues..

from vim-config.

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.