Comments (8)
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.
That's actually links that Macports creates when installing virtualenv.
Notice in venv.sh
I'm also trying virtualenv2
and virtualenv3
...
How are yours called?
from vim-config.
i simply ran
pip3 install -U neovim PyYAML
from vim-config.
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.
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.
@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:
- This is only for Neovim features, if you use classic Vim you don't need this.
- You don't have to use virtual-environments, read
:h provider-python
- 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.
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.
venv.sh
has since been updated. Let me know if there's still issues..
from vim-config.
Related Issues (20)
- WhickKey Trigger Setting Looks Wrong ?
- Controlling behaviour of LSP especially diagnostics HOT 1
- Deprecated: nvim-gps HOT 1
- config doesn't want to load plugins HOT 3
- problem with shebang HOT 5
- nvim-colorizer not active HOT 1
- comittia plugin configuration changes potentially broken HOT 2
- Interview partners for research about communication in GitHub projects wanted
- Vimwiki and Zk workflow HOT 1
- Correct Persisted Setup HOT 1
- Problem parsing yaml files when used with VimR HOT 1
- Migrate to lazy.nvim HOT 2
- neo-tree dockerfile icon show HOT 2
- choose window not work HOT 4
- The plugins NOT installed which under `extras` folders HOT 2
- Allow lazy setup to be configurable HOT 2
- Lack of user plugins leads to error on startup HOT 1
- when open the golang code, why notice this icon
- Error loading lightbulb setup HOT 1
- keymap <Return>/za notice "no fold found" HOT 3
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 vim-config.