Skip to content

Commit d690ebb

Browse files
committedMar 2, 2016
Fix #2275 -- use sys.executable for calling pip
1 parent 4f93ccd commit d690ebb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎nikola/plugins/command/plugin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from __future__ import print_function
3030
import io
3131
import os
32+
import sys
3233
import shutil
3334
import subprocess
3435
import time
@@ -254,7 +255,7 @@ def do_install(self, url, name, show_install_notes=True):
254255
LOGGER.notice('This plugin has Python dependencies.')
255256
LOGGER.info('Installing dependencies with pip...')
256257
try:
257-
subprocess.check_call(('pip', 'install', '-r', reqpath))
258+
subprocess.check_call((sys.executable, '-m', 'pip', 'install', '-r', reqpath))
258259
except subprocess.CalledProcessError:
259260
LOGGER.error('Could not install the dependencies.')
260261
print('Contents of the requirements.txt file:\n')

0 commit comments

Comments
 (0)