擅长:python、mysql、java
<p>皮普打电话给你设置.py但它会重定向stdout/stderr。测试设置.py在pip write to a file in a fixed location(pip写入固定位置的文件)下:</p>
<pre><code>class ActionOnInstall(install):
def run(self):
print("Call install.run(self) works!", file=open('/tmp/debug.log', 'w'))
install.run(self)
</code></pre>
<p>调查/tmp/调试日志在<code>pip install .</code>之后</p>