siat 3.7.3__py3-none-any.whl → 3.7.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- siat/common.py +17 -6
- {siat-3.7.3.dist-info → siat-3.7.4.dist-info}/METADATA +1 -1
- {siat-3.7.3.dist-info → siat-3.7.4.dist-info}/RECORD +6 -6
- {siat-3.7.3.dist-info → siat-3.7.4.dist-info}/WHEEL +1 -1
- {siat-3.7.3.dist-info → siat-3.7.4.dist-info}/LICENSE +0 -0
- {siat-3.7.3.dist-info → siat-3.7.4.dist-info}/top_level.txt +0 -0
siat/common.py
CHANGED
@@ -3836,6 +3836,8 @@ def upgrade_siat(module_list=['siat','akshare','pandas','pandas_datareader', \
|
|
3836
3836
|
或python -m pip install --upgrade pip
|
3837
3837
|
如果上述方法不适用,您可能需要重新安装Python,并确保在安装过程中选中了“Add Python to PATH”
|
3838
3838
|
"""
|
3839
|
+
DEBUG=False
|
3840
|
+
|
3839
3841
|
print("Upgrading siat and related modules, please wait ... ...")
|
3840
3842
|
|
3841
3843
|
#获取系统目录
|
@@ -3865,7 +3867,8 @@ def upgrade_siat(module_list=['siat','akshare','pandas','pandas_datareader', \
|
|
3865
3867
|
if sp_list[-1] == 'anaconda3': break
|
3866
3868
|
|
3867
3869
|
#生成pip命令字符串前半段,仅缺插件名
|
3868
|
-
cmdstr=sp+sep_flag+'Scripts'+sep_flag+pipcmd+' '
|
3870
|
+
#cmdstr=sp+sep_flag+'Scripts'+sep_flag+pipcmd+' '
|
3871
|
+
cmdstr=sp+sep_flag+pipcmd+' '
|
3869
3872
|
|
3870
3873
|
#检查是否使用镜像源
|
3871
3874
|
if alternative == "":
|
@@ -3898,17 +3901,25 @@ def upgrade_siat(module_list=['siat','akshare','pandas','pandas_datareader', \
|
|
3898
3901
|
for m in tqdm(module_list):
|
3899
3902
|
#print("Upgrading",m,"... ...",end='')
|
3900
3903
|
#print_progress_percent2(m,module_list,steps=5,leading_blanks=2)
|
3904
|
+
if DEBUG:
|
3905
|
+
print(" DEBUG: m={}".format(m))
|
3901
3906
|
|
3902
3907
|
if alternative == "":
|
3903
3908
|
cmdstr1=cmdstr+m
|
3904
3909
|
else:
|
3905
3910
|
cmdstr1=cmdstr+m+' '+alter_source
|
3906
|
-
|
3911
|
+
if DEBUG:
|
3912
|
+
print(" DEBUG: cmdstr1={}".format(cmdstr1))
|
3907
3913
|
|
3908
3914
|
#proc=subprocess.run(cmdstr1.split(' '),stdout=subprocess.PIPE)
|
3909
|
-
|
3910
|
-
|
3911
|
-
|
3915
|
+
try:
|
3916
|
+
proc=subprocess.run(cmdstr1.split(' '))
|
3917
|
+
rcode=proc.returncode
|
3918
|
+
if rcode !=0: fail_list=fail_list+[m]
|
3919
|
+
except:
|
3920
|
+
print(" #Error(upgrade_siat): executable file python not found in {}".format(sp))
|
3921
|
+
print(" Solution: find out the exact path where the executable file python locates")
|
3922
|
+
return
|
3912
3923
|
|
3913
3924
|
if len(fail_list) == 0:
|
3914
3925
|
print("All specified modules are successfully upgraded!")
|
@@ -3918,7 +3929,7 @@ def upgrade_siat(module_list=['siat','akshare','pandas','pandas_datareader', \
|
|
3918
3929
|
|
3919
3930
|
if 'pip' in fail_list:
|
3920
3931
|
print("Upgrading for pip, in Anaconda Prompt (Windows) or Terminal (Mac):")
|
3921
|
-
print(" python -m pip install --upgrade pip")
|
3932
|
+
print(" python -m pip install --upgrade --user pip")
|
3922
3933
|
|
3923
3934
|
return
|
3924
3935
|
|
@@ -18,7 +18,7 @@ siat/capm_beta.py,sha256=cxXdRVBQBllhbfz1LeTJAIWvyRYhW54nhtNUXv4HwS0,29063
|
|
18
18
|
siat/capm_beta2.py,sha256=-ZYYp1HK7SkfTR3vBKZ0QVC4Q_tbST2O4MGbX_V77J0,32031
|
19
19
|
siat/capm_beta_test.py,sha256=ImR0c5mc4hIl714XmHztdl7qg8v1E2lycKyiqnFj6qs,1745
|
20
20
|
siat/cmat_commons.py,sha256=Nj9Kf0alywaztVoMVeVVL_EZk5jRERJy8R8kBw88_Tg,38116
|
21
|
-
siat/common.py,sha256=
|
21
|
+
siat/common.py,sha256=2Y51NN6n4FhkNXDRFnV9xPE2Z7XcjqcqaWtZLRaDmgQ,163283
|
22
22
|
siat/compare_cross.py,sha256=3iP9TH2h3w27F2ARZc7FjKcErYCzWRc-TPiymOyoVtw,24171
|
23
23
|
siat/compare_cross_test.py,sha256=xra5XYmQGEtfIZL2h-GssdH2hLdFIhG3eoCrkDrL3gY,3473
|
24
24
|
siat/concepts_iwencai.py,sha256=m1YEDtECRT6FqtzlKm91pt2I9d3Z_XoP59BtWdRdu8I,3061
|
@@ -141,8 +141,8 @@ siat/valuation_china.py,sha256=CVp1IwIsF3Om0J29RGkyxZLt4n9Ug-ua_RKhLwL9fUQ,69624
|
|
141
141
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
142
142
|
siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
|
143
143
|
siat/yf_name.py,sha256=r0Q67cSMMlfebEkI9h9pdGlJCooEq7hw_3M5IUs4cSI,20081
|
144
|
-
siat-3.7.
|
145
|
-
siat-3.7.
|
146
|
-
siat-3.7.
|
147
|
-
siat-3.7.
|
148
|
-
siat-3.7.
|
144
|
+
siat-3.7.4.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
|
145
|
+
siat-3.7.4.dist-info/METADATA,sha256=Z5_tRV4Qco5cFw7n0OY1MUd17AVse6nzSrziWnY9PMI,8009
|
146
|
+
siat-3.7.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
147
|
+
siat-3.7.4.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
148
|
+
siat-3.7.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|