我已成功安装pyenv
并创建了一个虚拟环境:
$ pyenv virtualenv 3.6.3 venv
$ pyenv activate venv
$ pip install -r requirements.txt
前面的所有操作都允许在带有Ubuntu的windows10linux子系统中成功地安装nodeenv
。在
然后,我按照在Internet上找到的一些说明正确安装nodeenv
安装程序:
假设nodeenv -p
将nodeenv virtualenv
与{
$ pyenv activate server363
$ pyenv-virtualenv: prompt changing will be removed from future release. configure 'export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
$ nodeenv -p
* Install prebuilt node (9.11.1) ..... done.
* appending data to /home/fbenavides/.pyenv/versions/3.6.3/envs/server363/bin/activate
$ node -v
The program 'node' can be found in the following packages:
* node
* nodejs-legacy
Try: sudo apt-get install <selected package>
$ node -V
The program 'node' can be found in the following packages:
* node
* nodejs-legacy
Try: sudo apt-get install <selected package>
$ nodejs -v
The program 'nodejs' is currently not installed. You can install it by typing:
sudo apt-get install nodejs
$ nodejs -V
The program 'nodejs' is currently not installed. You can install it by typing:
sudo apt-get install nodejs
$ nodeenv -v
Usage: nodeenv [OPTIONS] ENV_DIR
nodeenv: error: You must provide a DEST_DIR or use current python virtualenv
$ nodeenv -V
Usage: nodeenv [OPTIONS] ENV_DIR
nodeenv: error: no such option: -V
我错过什么了吗?在
Windows 10 Linux子系统Ubuntu安装使用}设置,为了使
.bashrc
文件来存储pyenv
和{nodeenv -p
命令有效地安装节点服务器并将其绑定到pyenv virtualenv设置:相关问题 更多 >
编程相关推荐